bbPress plugins customization
Remove breadcrumb
function bm_bbp_no_breadcrumb ( $param ){ return true; } add_filter ('bbp_no_breadcrumb', 'bm_bbp_no_breadcrumb');
How to add a notice on WordPress Dashboard? function wdes_responsive_tool_1_discounted_add_ons() { ?> <div class="notice notice-success is-dismissible wdes-responsive-tool-1-discounted-add-ons"> <h3>WDES Responsive Tool 1</h3> <p>Get a <strong><a href="http://www.WDES Responsive Tool 1.com/purchase/" target="_blank">discount on Pro Version(20%) and Complete Version(30%) !</a></strong></p> </div> <?php } add_action( ‘admin_notices’, ‘wdes_responsive_tool_1_discounted_add_ons’ );
How to get the current scroll top position? Copy and past the following codes below to your JS file. var current_scroll = window.scrollY; console.log( current_scroll );
Using your Add to Wishlist button with the specific product, after clicking this will automatically add to your wishlist page. See the button mark up below. <header> <a href="#>WISH LIST COUNT : <span>0</span></a> </header> // Button only without ajax loading GIF <a href="http://yoursite.com/product/product-2/?add_to_wishlist=218" rel="nofollow" data-product-id="218" data-product-type="simple" class="add_to_wishlist">Add to Wishlist</a> // Default wishlist button mark up…
WordPress media library upload restriction, just copy the code below to your functions.php Or install this plugin to do the task WDES User Upload Restriction – https://wordpress.org/plugins/wdes-user-upload-restriction/. add_action(‘pre_get_posts’,’wdes_users_own_attachments’); function wdes_users_own_attachments( $wp_query_obj ) { global $current_user, $pagenow; if( !is_a( $current_user, ‘WP_User’) ){ return; } if( !in_array( $pagenow, array( ‘upload.php’, ‘admin-ajax.php’ ) ) ){ return; } if(…
Option 1 add_filter( ‘genesis_pre_get_option_site_layout’, ‘genesiscustomlayout’ ); function genesiscustomlayout(){ $pageobj = get_queried_object(); $pageid = absint($pageobj->ID); $pagelayout = get_post_meta($pageid , "_genesis_layout" , true); return $pagelayout; } Option 2 This function is to forced your custom post type content layout to full width. Common post type is post, page, and product ( woocommerce plugin pages ) and etc….
How to display post edit links after content? Copy and paste the codes into your page template echo ‘<p class="alignright"><a class="button" href="’ . get_edit_post_link( get_the_ID() ) . ‘">Edit Post</a></p>’;
It’s going to be end of mine day, however before end I am reading this enormous post to improve my knowledge.
I think the admin of this website is in fact working hard for
his website, for the reason that here every material is
quality based data.
Hey, thanks for sharing so much helpful information with us.
I believe I will reread this post a couple times. Great information!
I just want to say I am just new to blogging and site-building and certainly loved your web-site. More than likely I’m planning to bookmark your site . You definitely come with great articles. Thank you for sharing your web-site.
I just want to mention I am newbie to weblog and certainly enjoyed you’re blog site. Most likely I’m planning to bookmark your blog . You actually come with outstanding articles and reviews. Kudos for sharing with us your webpage.