Support

Account

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>