Adds the Yoast SEO meta box to the edit boxes in the edit post, page,
attachment, and custom post types pages.
public add_meta_box ( ) |
public function test_add_metabox() { global $wp_meta_boxes; self::$class_instance->add_meta_box(); $post_types = get_post_types(array('public' => true)); // test if all post types have the wpseo_meta metabox foreach ($post_types as $post_type) { $this->assertArrayHasKey('wpseo_meta', $wp_meta_boxes[$post_type]['normal']['high']); } }