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
<?php | |
/* | |
* Example | |
*/ | |
$my_acf_field = get_parent_block_acf_field( $context, 'field_5d4a9875f0c8d' ); | |
$my_acf_field_2 = get_parent_block_acf_field( $context, 'field_622746ee08ac6' ); | |
if( $my_acf_field ) { |
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
<?php | |
/* DEFINE ACF BLOCKS */ | |
if ( ! function_exists( 'my_acf_block_types' ) ) : | |
function my_acf_block_types() { | |
$color = '#2271b1'; | |
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
if(!function_exists('wordpress_image_compression_quality')): | |
function wordpress_image_compression_quality($quality) { | |
// Default compression level | |
return 82; // <-- 100 is highest quality | |
} | |
endif; |
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
if (!function_exists('wordpress_excerpt_more')): | |
function wordpress_excerpt_more($more) { | |
return ' ... '; | |
} | |
endif; |
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
if( ! function_exists('wordpress_excerpt_length') ) : | |
function wordpress_excerpt_length( $length ) { | |
return 55; // <-- Word count | |
} | |
endif; |