wp -liat table full copied
<div id=”wpbody” role=”main”> <div id=”wpbody-content”> <div class=”wrap”> <h1 class=”wp-heading-inline”> Table Title</h1> <a href=”#” class=”page-title-action”>Add Subscriber</a> <hr class=”wp-header-end”> …
<div id=”wpbody” role=”main”> <div id=”wpbody-content”> <div class=”wrap”> <h1 class=”wp-heading-inline”> Table Title</h1> <a href=”#” class=”page-title-action”>Add Subscriber</a> <hr class=”wp-header-end”> …
notice-error, notice-warning, notice-success, or notice-info <div class=“notice notice-success is-dismissible” style=“margin:10px 0 10px 0“> <p> This is your message </p> </div>
//check post visibility if(get_post_status(932) == ‘publish’){ if(post_password_required(932)) { $postStatus = ‘password protected’; } else{ $postStatus= ‘public’; } }else{ $postStatus = ‘private’; } if($postStatus){ echo $postStatus; }
$value = get_post_meta( $post->ID, ‘post-meta-box-id-name’,true); it return the direct value in string if we remove 3rd argument true then it will return an Array()
/* * Creating a function to create our CPT */ function custom_post_type() { // Set UI labels for Custom Post Type $labels = array( ‘name’ => _x( ‘Movies’, ‘Post Type General Name’, ‘twentytwenty’ ), ‘singular_name’ => _x( ‘Movie’, ‘Post Type Singular Name’, ‘twentytwenty’ ), ‘menu_name’ => __( ‘Movies’, ‘twentytwenty’ ), ‘parent_item_colon’ => __( ‘Parent …
function dbk_enqueue_scripts() { wp_enqueue_script( ‘debugger_custom_js’, plugins_url( ‘js/debugger-kanha.js’, __FILE__ ), array() ); //load jquery wp_enqueue_script( ‘jquery’ ); //add ajax url wp_localize_script( ‘debugger_custom_js’, ‘dbk’, array( ‘ajaxurl’ => admin_url( ‘admin-ajax.php’ ))); } add_action( ‘admin_enqueue_scripts’, ‘dbk_enqueue_scripts’ ); //for ajax call add_action( ‘wp_ajax_dbk_ajax’, ‘dbk_ajax_subscribe’ ); output function function dbk_ajax_subscribe(){ echo ‘this is ajax subscribe form’; } <script> jQuery(document).ready(function() { // …