Warns user whether Tainacan plugin is not activated

This commit is contained in:
Rodrigo de Oliveira 2021-04-20 16:15:15 -03:00
parent 21bcf67db4
commit 8cae10339b
1 changed files with 4 additions and 0 deletions

View File

@ -2435,6 +2435,10 @@ add_action( 'wp_head', 'tainacan_single_item_metadata_columns_count_output');
* @see wp_add_inline_style()
*/
function tainacan_items_page_filters_fixed_on_scroll_output() {
if (!defined('TAINACAN_VERSION')) {
_e('Tainacan plugin not activated!', 'tainacan-interface');
return;
}
$should_use_fixed_filters_logic = (version_compare(TAINACAN_VERSION, '0.17RC') >= 0) && get_theme_mod( 'tainacan_items_page_filters_fixed_on_scroll', false );
if (!$should_use_fixed_filters_logic)