This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action('astra_archive_header','function_call_astra_number' ); | |
| function function_call_astra_number() { | |
| astra_number_pagination(); | |
| } | |
| function astra_number_pagination() { | |
| global $numpages; | |
| $enabled = apply_filters( 'astra_pagination_enabled', true ); | |
| $numpages = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function astra_post_author( $output_filter = '' ) { | |
| ob_start(); | |
| echo '<span '; | |
| echo astra_attr( | |
| 'post-meta-author', | |
| array( | |
| 'class' => 'posted-by vcard author', | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'astra_post_tags', 'remove_tags_callback' ); | |
| function remove_tags_callback(){ | |
| return ' '; | |
| } | |
| add_action( 'astra_entry_after' , 'add_tags_callback'); | |
| function add_tags_callback(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('get_the_archive_title', function ($title) { | |
| return preg_replace('/^\w+: /', '', $title); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action('wp', 'remove_pingback'); | |
| function remove_pingback(){ | |
| remove_action('wp_head', 'astra_pingback_header'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function custom_quantity_field_archive() { | |
| $product = wc_get_product( get_the_ID() ); | |
| if ( ! $product->is_sold_individually() && 'variable' != $product->product_type && $product->is_purchasable() ) { | |
| woocommerce_quantity_input( array( 'min_value' => 1, 'max_value' => $product->backorders_allowed() ? '' : $product->get_stock_quantity() ) ); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Site Title / Logo | |
| * | |
| * @since 1.0.0 | |
| */ | |
| function astra_site_branding_markup() { | |
| ?> | |
| <div class="site-branding"> | |
| <div | |
| <?php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action('astra_single_post_title_after', 'callback_function'); | |
| function callback_function(){ | |
| if ( 'post' !== get_post_type() ){ | |
| $enable_meta = apply_filters( 'astra_blog_post_meta_enabled', '__return_true' ); | |
| $post_meta = astra_get_option( 'blog-meta' ); | |
| if ( is_array( $post_meta ) && $enable_meta ) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action( 'astra_primary_content_bottom' , 'author_meta_callback' ); | |
| function author_meta_callback(){ | |
| if ( 'post' !== get_post_type() ){ | |
| if (function_exists('astra_get_template')){ | |
| if ( astra_get_option( 'ast-author-info' ) && is_singular( ) ) { | |
| astra_get_template( 'blog-pro/template/author-info.php' ); | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('astra_post_author' , 'author_call_back', 15 ); | |
| function author_call_back(){ | |
| ob_start(); | |
| echo '<span '; | |
| echo astra_attr( | |
| 'post-meta-author', | |
| array( |
OlderNewer