array( 'name' => __( 'Feedbacks' ), 'singular_name' => __( 'Feedback' ), 'search_items' => __( 'Search Feedback' ), 'not_found' => __( 'No feedback found' ), 'not_found_in_trash' => __( 'No feedback found' ) ), 'menu_icon' => GRUNION_PLUGIN_URL . '/images/grunion-menu.png', 'show_ui' => TRUE, 'public' => FALSE, 'rewrite' => FALSE, 'query_var' => FALSE, 'capability_type' => 'page' ) ); register_post_status( 'spam', array( 'label' => 'Spam', 'public' => FALSE, 'exclude_from_search' => TRUE, 'show_in_admin_all_list'=> FALSE, 'label_count' => _n_noop( 'Spam (%s)', 'Spam (%s)' ), 'protected' => TRUE, '_builtin' => FALSE ) ); /* Can be dequeued by placing the following in wp-content/themes/yourtheme/functions.php * * function remove_grunion_style() { * wp_dequeue_style('grunion.css'); * } * add_action('wp_print_styles', 'remove_grunion_style'); */ wp_register_style('grunion.css', GRUNION_PLUGIN_URL . 'css/grunion.css'); } add_action( 'media_buttons', 'grunion_media_button', 999 ); function grunion_media_button( ) { global $post_ID, $temp_ID; $iframe_post_id = (int) (0 == $post_ID ? $temp_ID : $post_ID); $title = esc_attr( __( 'Add a custom form' ) ); $plugin_url = esc_url( GRUNION_PLUGIN_URL ); $site_url = admin_url( "/admin-ajax.php?post_id=$iframe_post_id&grunion=form-builder&action=grunion_form_builder&TB_iframe=true&width=768" ); echo '' . $title . ''; }