add_action('manage_users_columns','yoursite_manage_users_columns'); function yoursite_manage_users_columns($column_headers) { unset($column_headers['posts']); $column_headers['custom_posts'] = 'Assets'; return $column_headers; } add_action('manage_users_custom_column','yoursite_manage_users_custom_column',10,3); function yoursite_manage_users_custom_column($custom_column,$column_name,$user_id) {…
Post ID Shortcode
add_shortcode( 'postid', 'post_id_sh' );
function post_id_sh($atts, $content, $tag) {
global $post;
return get_the_ID();
}
Dieser Beitrag hat 0 Kommentare