$u_time = get_the_time( ‘U’ ); $u_modified_time = get_the_modified_time( ‘U’ ); // Only display modified date if 24hrs have passed since the post was published. if ( $u_modified_time >= $u_time + 86400 ) { $updated_date = get_the_modified_time( ‘F jS, Y’ );…Continue reading
function my_custom_password_form() { global $post; $label = ‘pwbox-‘ . ( empty( $post->ID ) ? rand() : $post->ID ); $output = ‘ ‘ . __( ” ) . ‘ ‘ . esc_attr_x( ‘Get Your Forms’, ‘post password form’ ) . ‘…Continue reading
function enqueue_custom_styles_scripts() { wp_enqueue_style(‘progress-bar-style’, get_template_directory_uri() . ‘/progress-bar-style.css’); wp_enqueue_script(‘progress-bar-script’, get_template_directory_uri() . ‘/progress-bar.js’, array(‘jquery’), null, true); } add_action(‘wp_enqueue_scripts’, ‘enqueue_custom_styles_scripts’); function custom_progress_bar_shortcode($atts) { $atts = shortcode_atts([ ‘range_major’ => ‘100’, ‘current_major’ => ’50’, ‘label_major’ => ‘Major Progress’, ‘range_minor’ => ‘100’, ‘current_minor’ => ’25’ ],…Continue reading
// When the user profile form is updated, this snippet checks if the business_name field matches a preexisting vendor post title. // If so, a vendor profile claim request is sent to the ‘Vendor Claims’ admin page // This snippet…Continue reading
// When the user profile form is updated, this snippet checks if the business_name field matches a preexisting vendor post title. // If so, a vendor profile claim request is sent to the ‘Vendor Claims’ admin page // This snippet…Continue reading
// When the user profile form is updated, this snippet checks if the business_name field matches a preexisting vendor post title. // If so, a vendor profile claim request is sent to the ‘Vendor Claims’ admin page // This snippet…Continue reading