Advertisement
palsushobhan

wcfm-store-page-article-tab-flatsome-theme

May 8th, 2024
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.92 KB | None | 0 0
  1. add_action( 'wcfmmp_store_article_loop_in_before', function( $store_id, $store_info ) {
  2.     ?>
  3.     <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  4.         <div class="article-inner <?php flatsome_blog_article_classes(); ?>">
  5.     <?php
  6. }, 50, 2);
  7.  
  8. add_action( 'wcfmmp_store_article_template', function() {
  9.     get_template_part('template-parts/posts/partials/entry-header', flatsome_option('blog_posts_header_style') );
  10.     get_template_part('template-parts/posts/content', 'default' );
  11.     get_template_part('template-parts/posts/partials/entry-footer', 'default' );
  12. });
  13.  
  14. add_action( 'wcfmmp_store_article_template_none', function() {
  15.     get_template_part( 'template-parts/posts/content','none');
  16. });
  17.  
  18. add_action( 'wcfmmp_store_article_loop_in_after', function( $store_id, $store_info ) {
  19.     ?>
  20.         </div>
  21.     </article>
  22. <?php
  23. }, 50, 2);
  24.  
  25. add_filter( 'wcfm_is_allow_store_articles', '__return_true' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement