/home/desid573/verdenaturopathy.com.au/site3/wp-content/plugins/meta-box/inc
NameSizeModeActions
about/-0755rm
fields/-0777rm
helpers/-0777rm
interfaces/-0777rm
storages/-0777rm
templates/-0777rm
update/-0777rm
walkers/-0777rm
autoloader.php18730644editdlrm
clone.php37550644editdlrm
core.php30830644editdlrm
field-registry.php18620644editdlrm
field.php183420644editdlrm
functions.php108570644editdlrm
loader.php39220644editdlrm
media-modal.php34220644editdlrm
meta-box-registry.php17610644editdlrm
meta-box.php133030644editdlrm
request.php25070644editdlrm
sanitizer.php89600644editdlrm
storage-registry.php5450644editdlrm
validation.php12300644editdlrm
wpml.php37090644editdlrm
Edit: /home/desid573/verdenaturopathy.com.au/site3/wp-content/plugins/meta-box/inc/core.php (3083B)
add_context_hooks(); } /** * Add links to Documentation and Extensions in plugin's list of action links. * * @since 4.3.11 * * @param array $links Array of plugin links. * * @return array */ public function plugin_links( $links ) { $links[] = '' . esc_html__( 'Docs', 'meta-box' ) . ''; return $links; } /** * Register meta boxes. * Advantages: * - prevents incorrect hook. * - no need to check for class existences. */ public function register_meta_boxes() { $configs = apply_filters( 'rwmb_meta_boxes', array() ); $registry = rwmb_get_registry( 'meta_box' ); foreach ( $configs as $config ) { $meta_box = $registry->make( $config ); $meta_box->register_fields(); } } /** * WordPress will prevent post data saving if a page template has been selected that does not exist. * This is especially a problem when switching to our theme, and old page templates are in the post data. * Unset the page template if the page does not exist to allow the post to save. * * @param WP_Post $post Post object. * * @since 4.3.10 */ public function fix_page_template( WP_Post $post ) { $template = get_post_meta( $post->ID, '_wp_page_template', true ); $page_templates = wp_get_theme()->get_page_templates(); // If the template doesn't exists, remove the data to allow WordPress to save. if ( ! isset( $page_templates[ $template ] ) ) { delete_post_meta( $post->ID, '_wp_page_template' ); } } /** * Get registered meta boxes via a filter. * * @deprecated No longer used. Keep for backward-compatibility with extensions. * * @return array */ public static function get_meta_boxes() { $meta_boxes = rwmb_get_registry( 'meta_box' )->all(); return wp_list_pluck( $meta_boxes, 'meta_box' ); } /** * Add hooks for extra contexts. */ public function add_context_hooks() { $hooks = array( 'edit_form_top', 'edit_form_after_title', 'edit_form_after_editor', 'edit_form_before_permalink', ); foreach ( $hooks as $hook ) { add_action( $hook, array( $this, 'add_context' ) ); } } /** * Add new meta box context. * * @param WP_Post $post The current post object. */ public function add_context( $post ) { $hook = current_filter(); $context = 'edit_form_top' === $hook ? 'form_top' : substr( $hook, 10 ); do_meta_boxes( null, $context, $post ); } }