This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** Display verbose errors */ | |
| define( 'IMPORT_DEBUG', false ); | |
| // Load Importer API | |
| require_once ABSPATH . 'wp-admin/includes/import.php'; | |
| if ( ! class_exists( 'WP_Importer' ) ) { | |
| $class_wp_importer = ABSPATH . 'wp-admin/includes/class-wp-importer.php'; | |
| if ( file_exists( $class_wp_importer ) ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Return a custom field stored by the Advanced Custom Fields plugin | |
| * | |
| * @global $post | |
| * @param str $key The key to look for | |
| * @param mixed $id The post ID (int|str, defaults to $post->ID) | |
| * @param mixed $default Value to return if get_field() returns nothing | |
| * @return mixed | |
| * @uses get_field() |
NewerOlder