$reading_speed = 200; // 200 words per minute $content = get_post_field( ‘post_content’, get_the_id() ); $word_count = str_word_count( strip_tags( $content ) ); $reading_time = ceil( $word_count / $reading_speed ); echo ‘ Estimated reading time: ‘ . absint( $reading_time ) . ‘…Continue reading
add_action( ‘admin_init’, function () { // Get all public post types $post_types = get_post_types( array(), ‘names’ ); function wpcode_add_post_id_column( $columns ) { $columns[‘wpcode_post_id’] = ‘ID’; // ‘ID’ is the column title return $columns; } function wpcode_show_post_id_column_data( $column, $post_id ) {…Continue reading
add_action( ‘admin_init’, function() { remove_action(‘admin_color_scheme_picker’, ‘admin_color_scheme_picker’); });Continue reading
add_action( ‘add_meta_boxes’, function () { if ( ! current_user_can( ‘manage_options’ ) ) { // Don’t display the metabox to users who can’t manage options return; } add_meta_box( ‘wpcode-view-post-meta’, ‘Post Meta’, function () { $custom_fields = get_post_meta( get_the_ID() ); ?> Meta…Continue reading
add_action( ‘init’, function () { global $wcvendors_pro; $wcv_pro_vendor_controller = $wcvendors_pro->wcvendors_pro_vendor_controller; remove_action(‘woocommerce_product_meta_start’, array( $wcv_pro_vendor_controller, ‘product_ships_from’ ), 9); add_action(‘woocommerce_product_meta_end’, array( $wcv_pro_vendor_controller, ‘product_ships_from’ ), 9); }, 100 );Continue reading
add_filter( /** * Filter the autoresponder content * this can be used to add custom shortcodes * * @param $msg * @param $id * @param $payment * * @return string content for autoresponder */ ‘qem_autoresponder-message-content’, function ( $msg, $id, $payment…Continue reading
–Select State–Daman and DiuGujaratKarnatakaMadhya PradeshMaharashtraRajasthan Podar Jumbo Kids, AnandPodar World School, Ankleshwar Podar Jumbo Kids, Bharuch – KasakPodar Jumbo Kids, Bharuch – ZadeshwarPodar Jumbo Kids, Vadodara – Gurukul Podar Jumbo Kids, Vadodara – ManjalpurPodar Jumbo Kids, Vadodara – Sayajipura Podar…Continue reading
/** * Set the valid range for the list view. */ add_filter( ‘wfea_cal_list_options’ , function( $options ) { $options[‘fullcalendar’][‘validRange’] = array( ‘start’ => date( ‘Y-m-d’, strtotime( ‘-5 months’ ) ), // 5 months ago ‘end’ => date( ‘Y-m-d’, strtotime( ‘+5…Continue reading