Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/redux-fr.../sample/sections/advanced...
File: callback.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Redux Framework callback config.
[2] Fix | Delete
* For full documentation, please visit: http://devs.redux.io/
[3] Fix | Delete
*
[4] Fix | Delete
* @package Redux Framework
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
defined( 'ABSPATH' ) || exit;
[8] Fix | Delete
[9] Fix | Delete
Redux::set_section(
[10] Fix | Delete
$opt_name,
[11] Fix | Delete
array(
[12] Fix | Delete
'title' => esc_html__( 'Callback', 'your-textdomain-here' ),
[13] Fix | Delete
'id' => 'additional-callback',
[14] Fix | Delete
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/configuration/fields/data.html#using-a-custom-callback" target="_blank">https://devs.redux.io/configuration/fields/data.html#using-a-custom-callback</a>',
[15] Fix | Delete
'subsection' => true,
[16] Fix | Delete
'fields' => array(
[17] Fix | Delete
array(
[18] Fix | Delete
'id' => 'opt-custom-callback',
[19] Fix | Delete
'type' => 'callback',
[20] Fix | Delete
'title' => esc_html__( 'Custom Field Callback', 'your-textdomain-here' ),
[21] Fix | Delete
'subtitle' => esc_html__( 'This is a completely unique field type', 'your-textdomain-here' ),
[22] Fix | Delete
'desc' => esc_html__( 'This is created with a callback function, so anything goes in this field. Make sure to define the function though.', 'your-textdomain-here' ),
[23] Fix | Delete
'callback' => 'redux_my_custom_field',
[24] Fix | Delete
),
[25] Fix | Delete
),
[26] Fix | Delete
)
[27] Fix | Delete
);
[28] Fix | Delete
[29] Fix | Delete
if ( ! function_exists( 'redux_my_custom_field' ) ) {
[30] Fix | Delete
/**
[31] Fix | Delete
* Custom function for the callback referenced above.
[32] Fix | Delete
*
[33] Fix | Delete
* @param array $field Field array.
[34] Fix | Delete
* @param mixed $value Set value.
[35] Fix | Delete
*/
[36] Fix | Delete
function redux_my_custom_field( array $field, $value ) {
[37] Fix | Delete
print_r( $field ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions
[38] Fix | Delete
echo '<br/>';
[39] Fix | Delete
print_r( $value ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions
[40] Fix | Delete
}
[41] Fix | Delete
}
[42] Fix | Delete
[43] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function