acf_print_scripts-input

Description

This action is called in all pages where field inputs are generated. Eg: page / post edit screen, front end form, options page, etc…

You can think of this function the same as admin_print_scripts but only for ACF input pages.

Usage

You can use this action to register / dereigister & enqueue / dequeue scripts

<?php

function my_acf_print_scripts()
{
       wp_enqueue_script( 'jquery' );
}

add_action('acf_print_scripts-input', 'my_acf_print_scripts');

?>

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.