wwr parallax 2
add_action(‘wp_footer’, function () { ?>Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_action(‘wp_footer’, function () { ?>Continue reading
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading
add_filter( ‘product_type_options’, function( $options ) { // remove “Virtual” checkbox if( isset( $options[ ‘virtual’ ] ) ) { unset( $options[ ‘virtual’ ] ); } // remove “Downloadable” checkbox if( isset( $options[ ‘downloadable’ ] ) ) { unset( $options[ ‘downloadable’ ]…Continue reading
if (!defined(‘ABSPATH’)) exit; add_action(‘init’, function () { if (is_admin()) return; $enabled = get_field(‘enable_header_top-bar’, ‘option’) ? ‘1’ : ‘0’; if ($enabled === ‘1’) { $_GET[‘rd_topbar_toggle’] = ‘1’; } else { unset($_GET[‘rd_topbar_toggle’]); } });Continue reading
if (!defined(‘ABSPATH’)) exit; define(‘TARGET_POST_ID’, 7183); // Specify the post ID of the layout section that should receive the values add_action(‘acf/save_post’, function ($post_id) { if ($post_id !== ‘options’) { return; } $enabled = get_field(‘enable_header_top-bar’, ‘option’) ? ‘1’ : ”; // specify…Continue reading
add_filter( ‘woocommerce_disable_admin_bar’, ‘__return_false’ );Continue reading
function add_manage_affiliates_cap_to_shop_manager() { // Get the role object $shop_manager = get_role( ‘shop_manager’ ); // Add capability to the role object if ( $shop_manager ) { $shop_manager->add_cap( ‘manage_affiliates’ ); } } add_action( ‘init’, ‘add_manage_affiliates_cap_to_shop_manager’ );Continue reading
add_action( ‘wp_footer’, function() { ?>Continue reading