Home › Forums › Front-end Issues › Validate value › Reply To: Validate value
Hmmm, I’m not approaching things that differently. What functionality might I be interfering with?
I have an add_action that runs on ‘admin_menu’. In the callback it fires
add_submenu_page( 'hc-settings', 'Data Tables', 'Data Tables', 'manage_options', 'hc-data', array($this, 'hc_page_data') );
Which calls
function hc_page_data() {
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/partials/data.php';
}
The data.php that is inlcuded is
<div class="wrap">
<h2>Home Calculator - Data Tables</h2>
<div>
<?php
do_action('acf/input/admin_head'); // Add ACF admin head hooks
do_action('acf/input/admin_enqueue_scripts'); // Add ACF scripts
$options = array(
'id' => 'acf-form',
'post_id' => 'options',
'new_post' => false,
'field_groups' => array( 'group_5d448ead2920a' ),
'return' => admin_url('admin.php?page=hc-data'),
'submit_value' => 'Update',
);
acf_form( $options );
?>
</div>
</div>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.