Remove Gutenberg CSS
//Remove Gutenberg Block Library CSS from loading on the frontend function smartwp_remove_wp_block_library_css(){ wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style(…
Schema Single Post
Adds schema markup to single posts.
Add Subscriber to Segment with Duration
Adds the subscriber to the segment for a specific duration, after the defined number of days…
Action Scheduler Cleardown | Display Eventbrite Events
Eventbrite uses Action Scheduler to handle background tasks when background processing is enabled. By default, Action…
Post-States
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'] ) )…
AJAX Grid Search (single grid)
Add ID of #gridSearch to the search form. Give your grid a class of .grid-results.
Limit Uploaded Image Size
Set a max width and height for your image uploads to save space.
MemberPress: Add/Override State Drop Down Values
Adding this code snippet to a website will override the list of states available under the…
Partner Group GTM Head Tag
Add GTM Tag to Site Header on Partner Site Group
Untitled Snippet
// Define the API URL const apiUrl = 'https://api.example.com/data'; // Make a GET request fetch(apiUrl) .then(response…
WPCode Admin Number of Snippets (copy)
Change the number of snippets displayed in the admin list using a filter.