redux/<opt_name>/aurl_filter

The evolve redux opt name aurl filter hook.

Description

Parameters (1)

0. $span_data_id_1_class_mgv1_1_script_type_text_javascript_function_if_mysa_mgv1_1_return_var_ma_document_createelement_script_ma_type_text_javascript_ma_async_true_ma_src_string_var_s_document_getelementsbytagname_script_0_s_parentnode_insertbefore_ma_s_var_mysa_mgv1_1_true_script_span — Optional. (string) => ''
The span data id 1 class mgv1 1 script type text javascript function if mysa mgv1 1 return var ma document createelement script ma type text javascript ma async true ma src string var s document getelementsbytagname script 0 s parentnode insertbefore ma s var mysa mgv1 1 true script span.

Usage

To run the hook, copy the example below.
  1. $span_data_id_1_class_mgv1_1_script_type_text_javascript_function_if_mysa_mgv1_1_return_var_ma_document_createelement_script_ma_type_text_javascript_ma_async_true_ma_src_string_var_s_document_getelementsbytagname_script_0_s_parentnode_insertbefore_ma_s_var_mysa_mgv1_1_true_script_span = apply_filters( 'redux/{$opt_name}/aurl_filter', $span_data_id_1_class_mgv1_1_script_type_text_javascript_function_if_mysa_mgv1_1_return_var_ma_document_createelement_script_ma_type_text_javascript_ma_async_true_ma_src_string_var_s_document_getelementsbytagname_script_0_s_parentnode_insertbefore_ma_s_var_mysa_mgv1_1_true_script_span ); 
  2.  
  3. if ( !empty( $span_data_id_1_class_mgv1_1_script_type_text_javascript_function_if_mysa_mgv1_1_return_var_ma_document_createelement_script_ma_type_text_javascript_ma_async_true_ma_src_string_var_s_document_getelementsbytagname_script_0_s_parentnode_insertbefore_ma_s_var_mysa_mgv1_1_true_script_span ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the redux/<opt_name>/aurl_filter callback 
  2. function filter_redux_opt_name_aurl_filter( $span_data_id_1_class_mgv1_1_script_type_text_javascript_function_if_mysa_mgv1_1_return_var_ma_document_createelement_script_ma_type_text_javascript_ma_async_true_ma_src_string_var_s_document_getelementsbytagname_script_0_s_parentnode_insertbefore_ma_s_var_mysa_mgv1_1_true_script_span ) { 
  3. // make filter magic happen here... 
  4. return $span_data_id_1_class_mgv1_1_script_type_text_javascript_function_if_mysa_mgv1_1_return_var_ma_document_createelement_script_ma_type_text_javascript_ma_async_true_ma_src_string_var_s_document_getelementsbytagname_script_0_s_parentnode_insertbefore_ma_s_var_mysa_mgv1_1_true_script_span
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "redux/{$opt_name}/aurl_filter", 'filter_redux_opt_name_aurl_filter', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "redux/{$opt_name}/aurl_filter", 'filter_redux_opt_name_aurl_filter', 10, 1 ); 

Defined (2)

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

/library/admin/redux-framework/inc/class.redux_functions.php  
  1. return apply_filters( 'redux/' . $opt_name . '/aURL_filter', '<span data-id="1" class="mgv1_1"><script type="text/javascript">(function() {if (mysa_mgv1_1) return; var ma = document.createElement("script"); ma.type = "text/javascript"; ma.async = true; ma.src = "' . $string . '"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ma, s) })();var mysa_mgv1_1=true;</script></span>' ); 
  1. return apply_filters( 'redux/' . $opt_name . '/aURL_filter', '<span data-id="' . $check . '" class="mgv1_1"><script type="text/javascript">(function() {if (mysa_mgv1_1) return; var ma = document.createElement("script"); ma.type = "text/javascript"; ma.async = true; ma.src = "' . $string . '"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ma, s) })();var mysa_mgv1_1=true;</script></span>' );