Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Dare autori potere di inserire iframe */
- $ge_wp_author_role = get_role( 'author' );
- $ge_wp_author_role->add_cap( 'unfiltered_html' );
- $ge_wp_editor_role = get_role( 'editor' );
- $ge_wp_editor_role->add_cap( 'unfiltered_html' );
- $ge_wp_administrator_role = get_role( 'administrator' );
- $ge_wp_administrator_role->add_cap( 'unfiltered_html' );
- // Use this filter if you want to force an option, blocking/disregarding manual setting
- add_filter( 'pp_options', 'my_pp_options', 99 );
- function my_pp_options( $options ) {
- // Array key corresponds to pp_prefixed name attributes of checkboxes, dropdowns and input boxes. Modify for desired settings.
- $options['unfiltered_html'] = 1;
- return $options;
- }
Advertisement
Add Comment
Please, Sign In to add comment