Archives: Snippets
BB-YES
https://skydome.com.au/slot-gacor/ https://wilmingtonbaptistchurch.com/link-slot-gacor/ https://embeff.com/slot-gacor-terpercaya/ https://golden-horn.de/wp-includes/slot-gacor/ https://www.almaluxjesolo.it/slot/ https://geographicforall.com/slot-gacor/ https://www.entrepueblos.org/slot-online-gacor/ https://destinyconnectfresh.org/slot-gacor-maxwin/ https://www.timothyegan.com/ https://semanamedioambiental.com/wp-includes/slot-gacor/ https://auditsocial.world/wp-includes/slot-gacor/ Slot Gacor Terbaru Slot Online Slot Judi Slot Gacor Slot Gacor RTP Slot Situs Slot Gacor Slot Tergacor Link Slot Gacor Situs Slot Gacor Terbaru Slot Gacor Gampang Jackpot…Continue reading
Load all Customizer “Additional CSS” in Block Editor
// Load the Frontend customizer “Additonal CSS” in the block editor. add_action( ‘enqueue_block_editor_assets’, ‘wp_custom_css_cb’ ); // Uncomment below if you need to manually manipulate the CSS for the block editor. // add_action( ‘enqueue_block_editor_assets’, function() { // ob_start(); // wp_custom_css_cb(); //…Continue reading
Untitled Snippet
Scan images from Elementor Galleries and counts them for the sitemap XML
add_filter( ‘aioseo_sitemap_images’, /** * Find new images inside the post content which has Elementor galleries. * It only works for self-hosted attachments. * * @param array $images The images already found. * @param object $post The post object * @return…Continue reading
HP Showcase
Order WPCode snippets by title in the admin
add_filter( ‘wpcode_code_snippets_table_prepare_items_args’, function( $args ) { if ( ! isset( $_GET[‘orderby’] ) ) { $args[‘orderby’] = ‘title’; } if ( ! isset( $_GET[‘order’] ) ) { $args[‘order’] = ‘ASC’; } return $args; });Continue reading
Export Categories and Tags
function export_tags_and_categories() { $terms = get_terms( array( ‘category’, ‘post_tag’ ), array( ‘hide_empty’ => false ) ); $output = fopen( ‘php://output’, ‘w’ ); fputcsv( $output, array( ‘Term ID’, ‘Name’, ‘Slug’, ‘Description’, ‘Taxonomy’ ) ); foreach ( $terms as $term ) {…Continue reading
Disable Posts Post Type
// Remove side menu add_action( ‘admin_menu’, function () { remove_menu_page( ‘edit.php’ ); } ); // Remove +New post in top Admin Menu Bar add_action( ‘admin_bar_menu’, function ( $wp_admin_bar ) { $wp_admin_bar->remove_node( ‘new-post’ ); }, 999 ); // Remove Quick Draft…Continue reading
Runs After A Successful OptinMonster Conversion (om.Optin.success)
document.addEventListener(‘om.Optin.success’, function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); // This event is passed the Optin object console.log(event.detail.Optin); // This event is passed the success response console.log(event.detail.response); } );Continue reading