Inventory_Presser_Customize_Admin_Dashboard::create_delete_all_post_attachments_button()


Source

File: includes/class-customize-admin-dashboard.php

			}

			$taxonomy_data[$i]['args']['show_in_menu'] = true;
			$taxonomy_data[$i]['args']['show_ui'] = true;
		}
		return $taxonomy_data;
	}
	
	/**
	 * create_add_media_button_annotation
	 * 
	 * Computes the number of attachments on vehicles so the number can be
	 * shown in the classic editor near the Add Media button.
	 *
	 * @return string
	 */
	function create_add_media_button_annotation()
	{
		global $post;
		if( !is_object( $post ) && isset( $_POST['post_ID'] ) )
		{