su_is_filter_safe

The shortcodes-ultimate su is filter safe function.

Published Date - February 15, 2021

Description

Validate filter callback name.

su_is_filter_safe( $filter );

Parameters

  1. $filter


Usage

The following example is for adding a hook callback.

if ( !function_exists( 'su_is_filter_safe' ) ) {
    require_once ABSPATH . PLUGINDIR . 'shortcodes-ultimateshortcodes-ultimate/includes/functions-helpers.php';
}

// The input(s). 
$filter = null;

// NOTICE! Understand what this does before running.
$result = su_is_filter_safe( $filter );
            

Defined

The function is defined in the following location(s).

shortcodes-ultimate/includes/functions-helpers.php

function su_is_filter_safe( $filter ) {
	return is_string( $filter ) && false !== strpos( $filter, 'filter' );
}