add_filter( ‘sgo_javascript_combine_exclude’, ‘js_combine_exclude’ ); function js_combine_exclude( $exclude_list ) { $exclude_list[] = ‘ngg_galleria’; $exclude_list[] = ‘ngg_galleria_init’; return $exclude_list; }Continue reading
function imagely_theme_mods() { set_theme_mod(‘reactr_blog_single_elements_positioning’, ”); } add_action( ‘init’, ‘imagely_theme_mods’ );Continue reading
define(‘NGG_DISABLE_IMAGICK’, true);Continue reading
function my_custom_gallery_order( $order ) { return ‘DESC’; } add_filter( ‘ngg_manage_galleries_items_order’, ‘my_custom_gallery_order’ );Continue reading
add_filter( ‘big_image_size_threshold’, ‘__return_false’ );Continue reading
class EnviraGalleryCustom { private function render_feed_output() { // Return empty if gallery data is not set. if ( ! isset( $this->data[‘gallery’] ) ) { return ”; } $gallery_items = $this->data[‘gallery’]; $gallery_html = ”; foreach ( $gallery_items as $id => $item…Continue reading
add_action( ‘admin_head’, function() { ?>Continue reading
#– Allow Shop Manager to access Product Feed menus –# function allow_feed_menus_to_shop_manager() { return ‘manage_woocommerce’; } add_filter( ‘woosea_user_cap’, ‘allow_feed_menus_to_shop_manager’ ); #– Add Product Feed Manage Capability to Shop Manager Role –# function add_adt_cap_to_shop_manager() { $role = get_role( ‘shop_manager’ ); if(…Continue reading
/* Customize your URL image links with deeplinking * * @link https://enviragallery.com/docs/how-to-create-custom-urls-for-images-in-deeplinked-galleries/ */ add_filter( ‘envira_whitelabel_envira_deeplinking_slug’, ‘custom_envira_deeplinking_slug’ ); add_filter( ‘envira_whitelabel’, ‘__return_true’ ); function custom_envira_deeplinking_slug( $slug_name ) { // Use your own slug replacing my_custom_slug $custom_slug = ‘my_custom_slug’; return $custom_slug; }Continue reading