PluginProbe ʕ •ᴥ•ʔ
Advanced Import / 1.3.2
Advanced Import v1.3.2
trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 2.0.0
advanced-import / includes / functions-advanced-import.php
advanced-import / includes Last commit date
theme-template-library 5 years ago class-advanced-import-activator.php 5 years ago class-advanced-import-deactivator.php 5 years ago class-advanced-import-i18n.php 5 years ago class-advanced-import-loader.php 5 years ago class-advanced-import.php 5 years ago class-theme-template-library-base.php 5 years ago functions-advanced-import.php 5 years ago index.php 5 years ago
functions-advanced-import.php
30 lines
1 <?php
2 function advanced_import_allowed_html( $input ) {
3 $allowed_html = wp_kses_allowed_html( 'post' );
4 $output = wp_kses( $input, $allowed_html );
5 return $output;
6 }
7
8 function advanced_import_current_url() {
9 global $pagenow;
10 $current_url = $pagenow == 'tools.php' ? admin_url( 'tools.php?page=advanced-import-tool' ) : admin_url( 'themes.php?page=advanced-import' );
11 return $current_url;
12 }
13
14 function advanced_import_get_current_theme_author() {
15 $current_theme = wp_get_theme();
16 return $current_theme->get( 'Author' );
17 }
18 function advanced_import_get_current_theme_slug() {
19 $current_theme = wp_get_theme();
20 return $current_theme->stylesheet;
21 }
22 function advanced_import_get_theme_screenshot() {
23 $current_theme = wp_get_theme();
24 return $current_theme->get_screenshot();
25 }
26 function advanced_import_get_theme_name() {
27 $current_theme = wp_get_theme();
28 return $current_theme->get( 'Name' );
29 }
30