ADMIN – Export all published posts into CSV file

// Hook to add admin submenu item under Posts add_action(‘admin_menu’, ‘custom_admin_submenu’); function custom_admin_submenu() { add_submenu_page( ‘edit.php’, // Parent slug (Posts menu) ‘Export Posts’, // Page title ‘Export Posts’, // Menu title ‘edit_posts’, // Capability ‘exported-posts’, // Menu slug ‘display_exported_posts’ //…Continue reading

Duplicate Post/Page Link

// Add duplicate button to post/page list of actions. add_filter( ‘post_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); add_filter( ‘page_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); // Let’s make sure the function doesn’t already exist. if ( ! function_exists( ‘wpcode_snippet_duplicate_post_link’ ) ) { /** *…Continue reading