backward.php
4 years ago
get_taxonomies_by_object_type.php
4 years ago
pmxe_filter.php
4 years ago
pmxe_functions.php
4 years ago
pmxe_prepare_price.php
4 years ago
pmxe_render_xml_attributes.php
4 years ago
pmxe_render_xml_element.php
4 years ago
pmxe_render_xml_text.php
4 years ago
str_getcsv.php
4 years ago
wp_all_export_check_children_assign.php
4 years ago
wp_all_export_generate_export_file.php
4 years ago
wp_all_export_get_cpt_name.php
4 years ago
wp_all_export_get_export_format.php
4 years ago
wp_all_export_is_compatible.php
4 years ago
wp_all_export_parse_field_name.php
4 years ago
wp_all_export_posts_join.php
4 years ago
wp_all_export_posts_where.php
4 years ago
wp_all_export_pre_user_query.php
4 years ago
wp_all_export_prepare_template_csv.php
4 years ago
wp_all_export_prepare_template_xml.php
4 years ago
wp_all_export_rand_char.php
4 years ago
wp_all_export_remove_colons.php
4 years ago
wp_all_export_remove_source.php
4 years ago
wp_all_export_reverse_rules_html.php
4 years ago
wp_all_export_rmdir.php
4 years ago
wp_all_export_secure_file.php
4 years ago
wp_all_export_url_title.php
4 years ago
wp_all_export_write_article.php
4 years ago
wp_redirect_or_javascript.php
4 years ago
backward.php
40 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Contains function which were introduced in late wordpress versions |
| 4 | */ |
| 5 | |
| 6 | if ( ! function_exists('is_network_admin')): |
| 7 | /** |
| 8 | * Whether the current request is for a network admin screen /wp-admin/network/ |
| 9 | * |
| 10 | * Does not inform on whether the user is a network admin! Use capability checks to |
| 11 | * tell if the user should be accessing a section or not. |
| 12 | * |
| 13 | * @since 3.1.0 |
| 14 | * |
| 15 | * @return bool True if inside WordPress network administration pages. |
| 16 | */ |
| 17 | function is_network_admin() { |
| 18 | if ( defined( 'WP_NETWORK_ADMIN' ) ) |
| 19 | return WP_NETWORK_ADMIN; |
| 20 | return false; |
| 21 | } |
| 22 | endif; |
| 23 | |
| 24 | if ( ! function_exists('is_user_admin')): |
| 25 | /** |
| 26 | * Whether the current request is for a user admin screen /wp-admin/user/ |
| 27 | * |
| 28 | * Does not inform on whether the user is an admin! Use capability checks to |
| 29 | * tell if the user should be accessing a section or not. |
| 30 | * |
| 31 | * @since 3.1.0 |
| 32 | * |
| 33 | * @return bool True if inside WordPress user administration pages. |
| 34 | */ |
| 35 | function is_user_admin() { |
| 36 | if ( defined( 'WP_USER_ADMIN' ) ) |
| 37 | return WP_USER_ADMIN; |
| 38 | return false; |
| 39 | } |
| 40 | endif; |