Need folder for CPT templates for eg: single-{post_type}.php

i was able to solve some of it // defining the sub-directory so that it can be easily accessed from elsewhere as well. define( ‘WPSE_PAGE_TEMPLATE_SUB_DIR’, ‘pages’ ); function wpse227006_page_template_add_subdir( $templates = array() ) { // Generally this doesn’t happen, unless another plugin / theme does modifications // of their own. In that case, it’s better … Read more

Publish metabox postition?

You could try removing the ‘submitdiv’ metabox and re-adding it with a low priority this way: function benny_default_position_publish_box() { remove_meta_box( ‘submitdiv’, ‘post’, ‘side’ ); remove_meta_box( ‘submitdiv’, ‘page’, ‘side’ ); //remove_meta_box( ‘submitdiv’, ‘cpt’, ‘side’ ); add_meta_box( ‘submitdiv’, __( ‘Publish’ ), ‘post_submit_meta_box’, ‘post’, ‘side’, ‘low’ ); add_meta_box( ‘submitdiv’, __( ‘Publish’ ), ‘post_submit_meta_box’, ‘page’, ‘side’, ‘low’ ); //add_meta_box( … Read more

Link to a new page into a plugin

This work 🙂 function ca_admin_link() { // My code goes here add_menu_page( ‘Checklist Artistas’, // Title of the page ‘Checklist Artistas’, // Text to show on the menu link ‘manage_options’, // Capability requirement to see the link ‘checklist-artistas/includes/ca-checklist-acp-page.php’ // The ‘slug’ – file to display when clicking the link ); // This is the first … Read more