Change Label of custom post type

The list_table_primary_column hook might be the one to go with, i.e: add_filter(‘list_table_primary_column’, ‘teams_table_primary_column’, 10, 2); function teams_table_primary_column($colname, $screen_id) { if($screen_id == ‘teams’ && $colname == ‘Title’) { return “New column name”; } } Note: this is completely untested, let me know how it goes! Reference

ajax multiple Values

Thanks to give me the advise to work with JSON. I Think i get it now. Perhaps someone could look over it? Here My Code Button: <div id=”div3″> <button id=”rob-wp-ajax-vorlage-button”>ok</button> </div> My PHP Code function load_my_ajax_vorlage() { wp_enqueue_script( ‘my_custom_js’, plugins_url( ‘ajax-vorlage-script.js’, __FILE__ ), array(‘jquery’), false, false ); } add_action(‘wp_enqueue_scripts’, ‘load_my_ajax_vorlage’); add_action( ‘wp_footer’, ‘load_my_ajax_vorlage’ ); add_action(‘wp_enqueue_scripts’, … Read more

Add WordPress Meta Box saved form input to WordPress RSS feed [duplicate]

I figured out the code to add to the above tutorial article about creating a Meta Box that saves values. This code puts the post meta into its own tag in the RSS. I added the post meta “meta-text” to the code below to work with the tutorial. add_action(‘rss2_item’, ‘add_my_custom_field_node’); function add_my_custom_field_node() { global $post; … Read more

Buddy Press restrict the capability to edit users

Ok I got an solution for my case. Maybe a bit confusing but I did’nt saw anothere possibility to do this. If you know a better way let me know. First I hide the Edit Item in the Admin Menu: add_action( ‘admin_bar_menu’, array($this,’sa_classbook_remove_admin_bar_items’), 999 ); function sa_classbook_remove_admin_bar_items(){ global $wp_admin_bar; $wp_admin_bar->remove_node(‘user-admin’); } Then I check the … Read more