Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Disable Custom Cursor in Global Options
- *
- * @param array $options List Options.
- *
- * @return array
- */
- function profeceient_disable_global_custom_cursor( $options ) {
- if ( ( $key = array_search( 'Custom_Cursor', $options ) ) !== false ) {
- unset( $options[ $key ] );
- }
- return $options;
- }
- add_filter( 'profecient_global_options', 'profeceient_disable_global_custom_cursor', 99 );
- /**
- * Disable Custom Cursor in each Widgets
- *
- * @param array $options Options.
- *
- * @return array
- */
- function profeceient_disable_custom_cursor( $options ) {
- unset( $options['profecient_custom_cursor'] );
- return $options;
- }
- add_filter( 'profecient_register_custom_options', 'profeceient_disable_custom_cursor', 99 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement