This file contains 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
<?php | |
/** | |
* With this function you can modify any options value for specific page or post. | |
* | |
* @var $meta saved page/post settings | |
* @var $post_id current page/post ID | |
* | |
* @return array | |
*/ |
This file contains 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
<?php | |
/** | |
* With this function you can modify an specific option value for specific page or post. | |
* | |
* @var $value saved theme option value | |
* | |
* @return string|array | |
*/ | |
function codevz_custom_logo( $value ) { |
This file contains 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
<?php | |
/** | |
* With this function you can modify any options value for specific page or post. | |
* | |
* @var $value saved theme options value | |
* | |
* @return string|array | |
*/ | |
function codevz_custom_options( $options ) { |
This file contains 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
<?php | |
/** | |
* With this function you can modify single post featured image including post format HTML data. | |
* | |
* @var $value HTML of featured image and post format. | |
* | |
* @return string | |
*/ | |
function codevz_xtra_single_featured_image( $value ) { |
This file contains 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
<?php | |
/** | |
* With this function you can modify single post featured image including post format HTML data. | |
* | |
* @var $value HTML of featured image and post format. | |
* | |
* @return string | |
*/ | |
function codevz_xtra_archive_thumbnail_size( $size, $post_type ) { |
This file contains 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
<?php | |
/** | |
* With this filter you can completely disable google fonts. | |
* | |
* @return boolean | |
*/ | |
add_filter( 'codevz/disable/google_fonts', '__return_true' ); | |
// |
This file contains 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
<?php | |
/** | |
* With this function you can add any custom contetn, HTML, shortcode before any archive pages. | |
* | |
* @var $post_type post type slug | |
*/ | |
function my_prefix_before_archive_content( $post_type ) { | |
if ( $post_type === 'post' ) { |
This file contains 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
<?php | |
/** | |
* With this function you can add any content or php codes before post type archive pages. | |
* | |
* @var $post_type will return current post type name | |
*/ | |
function my_prefix_before_archive( $post_type ) { | |
if ( $post_type === 'portfolio' ) { |
This file contains 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
<?php | |
/** | |
* With this function you can add any content or php codes after post type archive pages. | |
* | |
* @var $post_type will return current post type name | |
*/ | |
function my_prefix_after_archive( $post_type ) { | |
if ( $post_type === 'portfolio' ) { |
This file contains 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
<?php | |
/** | |
* With this function you can add any content or php codes before posts meta in single post page. | |
* | |
* @var $post current post object | |
*/ | |
function codevz_single_before_meta( $post ) { | |
if ( $post->ID === 22 ) { |
OlderNewer