How to select a page within admin?

add_action( ‘add_meta_boxes_page’, ‘wpse_57924_remove_editor’ ); function wpse_57924_remove_editor( $post ) { if ( $post->ID == get_option( ‘page_on_front’ ) /* or hardcode ID if not front page */ ) remove_post_type_support( ‘page’, ‘editor’ ); }

passing parameters to do action from shortcode to wp_footer

Use a class, store the value you need in the footer in a member variable. Sample code, not tested: add_shortcode( ‘tooltip’, array ( ‘WPSE_69605_Tooltip’, ‘shortcode_callback’ ) ); class WPSE_69605_Tooltip { protected static $var=””; public static function shortcode_callback( $atts, $content=”” ) { self::$var=”foo”; add_action( ‘wp_footer’, array ( __CLASS__, ‘footer’ ) ); } public static function footer() … Read more

WordPress Ajax Problems

You have nothing specific to do to “load” modified php code in WordPress. All files are just loaded as is at execution time (ie when the HTTP request is processed by the server). You just have to verify that your plugin is active. Your curl command is malformed. Use this instead : curl -X POST … Read more

Does update_comment_meta hook exists?

Well, it’s a little bit complicated 😉 If you will search update_comment_meta hook, you won’t find it. But it exists 🙂 There is update_comment_meta function and it calls update_metadata function with first param set to comment. This update_metadata function does something like this (meta.php line 149): do_action( “update_{$meta_type}_meta”, $meta_id, $object_id, $meta_key, $_meta_value ); where $meta_type … Read more