Submit
Path:
~
/
home
/
getwphos
/
www
/
shellfish
/
wp-content
/
plugins
/
redux-framework
/
sample
/
sections
/
advanced-features
/
File Content:
callback.php
<?php /** * Redux Framework callback config. * For full documentation, please visit: https://devs.redux.io/ * * @package Redux Framework */ defined( 'ABSPATH' ) || exit; Redux::set_section( $opt_name, array( 'title' => esc_html__( 'Callback', 'your-textdomain-here' ), 'id' => 'additional-callback', '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>', 'subsection' => true, 'fields' => array( array( 'id' => 'opt-custom-callback', 'type' => 'callback', 'title' => esc_html__( 'Custom Field Callback', 'your-textdomain-here' ), 'subtitle' => esc_html__( 'This is a completely unique field type', 'your-textdomain-here' ), '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' ), 'callback' => 'redux_my_custom_field', ), ), ) ); if ( ! function_exists( 'redux_my_custom_field' ) ) { /** * Custom function for the callback referenced above. * * @param array $field Field array. * @param mixed $value Set value. */ function redux_my_custom_field( array $field, $value ) { print_r( $field ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions echo '<br/>'; print_r( $value ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
callback.php
1581 bytes
0644
field-required-linking.php
5092 bytes
0644
field-sanitizing.php
2189 bytes
0644
field-validation.php
7890 bytes
0644
index.php
79 bytes
0644
wpml-integration.php
1477 bytes
0644
N4ST4R_ID | Naxtarrr