Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-adding support for ACF PRO #106

Open
soderlind opened this issue Aug 2, 2016 · 4 comments
Open

Re-adding support for ACF PRO #106

soderlind opened this issue Aug 2, 2016 · 4 comments
Labels

Comments

@soderlind
Copy link
Owner

soderlind commented Aug 2, 2016

Ref dialog in WordPress Support Forum, could you please test the beta plugin below ?

NOTE, it:

  • is a hack, I'm a bit ambivalent in doing this.
  • block ACF PRO from adding its own date+time and time picker
  • is a beta, please test in a non-production environment

The beta plugin is available in my dropbox

To stop ACF PRO from loading its date+time and time picker, I've added the following code to my plugin:

add_action( 'init', function() {
    class acf_field_date_and_time_picker { /* empty class, will prevent ACF Pro from creating it */} // @codingStandardsIgnoreLine
    class acf_field_time_picker{/* empty class, will prevent ACF Pro from creating it */} // @codingStandardsIgnoreLine
}, 1 );
@soderlind soderlind added the Maybe label Aug 2, 2016
@andcam
Copy link

andcam commented Aug 2, 2016

thanks Per, will do. very much appreciated!

@andcam
Copy link

andcam commented Aug 2, 2016

unfortunately it's throwing a JS error in console and the field boxes are missing:

"acf-input.min.js:1 Uncaught TypeError: Cannot read property 'date_format' of undefined"

Which i'm guessing means their JS is conflicting?

(ACF Pro v5.3.10)

@soderlind
Copy link
Owner Author

Yepp, I'll see if I can dequeue unneeded javascript(s).

@soderlind
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants