| Server IP : 87.98.154.146 / Your IP : 216.73.216.165 Web Server : Apache System : Linux webm004.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : ohklomafyi ( 52085) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/ohklomafyi/www/wp-content/plugins/portfolio-elementor/includes/ |
Upload File : |
<?php
//Activate PRO version
if ( !function_exists( 'elpt_activate' ) ) {
//Flush rewrite rules after plugin activation
function elpt_activate()
{
if ( !get_option( 'elpt_flush_rewrite_rules_flag' ) ) {
add_option( 'elpt_flush_rewrite_rules_flag', true );
}
}
register_activation_hook( __FILE__, array( 'Powerfolio_Portfolio', 'add_cpt_support_for_elementor' ) );
}
//Turn text into a slug
if ( !function_exists( 'elpt_get_text_slug' ) ) {
function elpt_get_text_slug($text) {
// strip out all whitespace
$text = preg_replace('/\s+/', '_', $text);
// convert the string to all lowercase
$text = strtolower($text);
return $text;
}
}