Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'init' , 'add_custom_supported_fieldtype' );
- /**
- * Add a new fieldtype-name to the supported field_types
- */
- function add_custom_supported_fieldtype() {
- // bail early if plugin has been deactivated or isn't installed
- if ( !class_exists( 'easy_acf_connect' ) ) return;
- easy_acf_connect::$supported_acf_field_types = array_merge(
- easy_acf_connect::$supported_acf_field_types,
- array( 'image_aspect_ratio_crop' )
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement