Change Month Calendar to show only items in the month | Display Eventbrite Plugins
add_filter( ‘wfea_cal_extra_options’, function ( $options ) { $options[‘fullcalendar’][‘showNonCurrentDates’] = false; return $options; }, 10, 1 );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘wfea_cal_extra_options’, function ( $options ) { $options[‘fullcalendar’][‘showNonCurrentDates’] = false; return $options; }, 10, 1 );Continue reading
add_filter( ‘aioseo_schema_output’, function ( $schema ) { foreach ( $schema as &$schemaItem ) { if ( isset( $schemaItem[‘@type’] ) && ‘Product’ === $schemaItem[‘@type’] ) { if(!empty($schemaItem[“offers”][“shippingDetails”])){ // Loop inside the Offers > shippingDetails schema foreach( $schemaItem[“offers”][“shippingDetails”] as &$schemaItemChild ){ //…Continue reading
add_action( ‘wp’, ‘example_charitable_update_donation_fields’ ); function example_charitable_update_donation_fields() { // Get the donation fields. $fields = charitable()->donation_fields(); // Get the field we want to update. $field = $fields->get_field( ‘state’ ); // Update the field’s label to say “Province” on the donation form…Continue reading
add_filter( ‘display_post_states’, ‘bu_style_post_state_bricks’, 15, 2 ); function bu_style_post_state_bricks ($post_states, $post) { if( isset( $post_states[‘bricks’] ) ) { if( current_user_can( ‘edit_posts’, $post->ID ) ) { $bricks_edit_link = get_permalink($post->ID) . ‘?bricks=run’; $post_states[‘bricks’] = ‘‘ . $post_states[‘bricks’] . ‘‘; } else { $post_states[‘bricks’]…Continue reading
function year_shortcode() { $year = date(‘Y’); return $year; } add_shortcode(‘year’, ‘year_shortcode’);Continue reading
/** * Allow JS uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
/** * Allow CSS uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading