Advertisement
palsushobhan

store-article-tab-oceanwp

Nov 15th, 2021
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. add_action('wcfmmp_before_store_article', function ($store_id, $store_info) {
  2. ?>
  3.     <div id="blog-entries" class="<?php oceanwp_blog_wrap_classes(); ?>">
  4.     <?php
  5. }, 50, 2);
  6.  
  7. add_action('wcfmmp_store_article_template', function () {
  8.     get_template_part('partials/entry/layout');
  9. });
  10.  
  11. add_action('wcfmmp_store_article_template_none', function () {
  12.     // Display no post found notice
  13.     get_template_part('partials/none');
  14. });
  15.  
  16. add_action('wcfmmp_after_store_article', function ($store_id, $store_info) {
  17.     ?>
  18.     </div>
  19.     <div class="clearfix"></div>
  20. <?php
  21.     // Display post pagination
  22.     oceanwp_blog_pagination();
  23. }, 50, 2);
  24.  
  25. add_filter('wcfm_is_allow_store_articles', '__return_true');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement