Type: php
Add user registration date
/* * Creating a column (it is also possible to remove some default ones) */ add_filter( ‘manage_users_columns’, ‘rudr_modify_user_table’ ); function rudr_modify_user_table( $columns ) { // unset( $columns[‘posts’] ); // maybe you would like to remove default columns $columns[ ‘registration_date’ ]…Continue reading
Untitled Snippet
Disable Attachment Filters to Fix Envira Gallery
add_action( ‘plugins_loaded’, function(){ remove_filter(‘attachment_fields_to_edit’, array(‘Fusion_Images’, ‘add_image_meta_fields’), 10); remove_filter(‘attachment_fields_to_edit’, array(‘Avada_Images’, ‘add_image_meta_fields’), 10); }, 99); function remove_masonry($fields) { unset($fields[‘fusion_masonry_element_layout’]); return $fields; } add_filter(‘attachment_fields_to_edit’, ‘remove_caption’, 99);Continue reading
code at the end of the body tag
code at the end of the body tag
Cache 2
location /srv/htdocs/wp-content/wpo-cache { deny all; }Continue reading
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
Untitled Snippet
PHP [Post Category]: Populate the Original Vendor Credits Below Post Content
// This code snippet generates the original “Wedding Vendors” vendor credits list. // The vendor credit data is located within ACF “Post Fields” (group_5601197f77d36) field group. // Applies to the following Post Categories: // – Real Weddings // – Real…Continue reading