Метод |
Описание |
|
_wp_post_revision_fields ( array $fields, array $post ) : array |
Shows Preprocessor code in the Revisions screen, and ensures that post_content_filtered
is maintained on revisions |
|
add_hooks ( ) |
Set up the actions and filters needed for our compatability layer on top of core's Custom CSS implementation. |
|
admin_menu ( ) |
Handle our admin menu item and legacy page declaration. |
|
admin_page ( ) |
Admin page! |
|
are_there_css_revisions ( string $stylesheet = '' ) : boolean | null | WP_Post |
Check whether there are CSS Revisions for a given theme. |
|
customize_controls_enqueue_scripts ( ) |
Handle the enqueueing and localizing for scripts to be used in the Customizer. |
|
customize_preview_init ( ) |
Things that we do on init when the Customize Preview is loading. |
|
customize_preview_wp_get_custom_css ( string $css ) : mixed |
Output the custom css for customize preview. |
|
customize_register ( WP_Customize_Manager $wp_customize ) |
Add Custom CSS section and controls. |
|
customize_update_custom_css_post_content_args ( array $args, string $css, WP_Customize_Custom_CSS_Setting $setting ) : mixed |
Store the original pre-processed CSS in post_content_filtered
and then store processed CSS in post_content. |
|
customize_value_custom_css ( mixed $css, WP_Customize_Setting $setting ) : string |
Add CSS preprocessing to our CSS if it is supported. |
|
customizer_link ( array $args = [] ) : string |
Build the URL to deep link to the Customizer. |
|
customizer_redirect ( ) |
Handle the redirect for the customizer. This is necessary because
we can't directly add customizer links to the admin menu. |
|
echo_custom_css_partial ( ) |
Partial for use in the Customizer. |
|
editor_max_image_size ( array $dims, string $size = 'medium', null $context = null ) : array |
When on the edit screen, make sure the custom content width
setting is applied to the large image size. |
|
get_all_themes_with_custom_css ( ) : array |
When we need to get all themes that have Custom CSS saved. |
|
get_css_post ( string $stylesheet = '' ) : WP_Post | null |
Get the published custom CSS post. |
|
get_revisions_url ( string $stylesheet = '' ) : null | string | void |
Core doesn't have a function to get the revisions url for a given post ID. |
|
get_themes ( ) : array |
Get a map of all theme names and theme stylesheets for mapping stuff. |
|
init ( ) |
Things that we do on init. |
|
intval_base10 ( mixed $value ) : integer |
Get the base10 intval. |
|
is_freetrial ( ) : boolean |
Flesh out for wpcom. |
|
is_preview ( ) : boolean |
Flesh out for wpcom. |
|
jetpack_content_width ( integer $content_width ) : integer |
Override the content_width with a custom value if one is set. |
|
load_revision_php ( ) |
Add a footer action on revision.php to print some customizations for the theme switcher. |
|
map_meta_cap ( array $caps, string $cap ) : array |
Re-map the Edit CSS capability. |
|
post_id ( string $stylesheet = '' ) : integer |
Get the ID of a Custom CSS post tying to a given stylesheet. |
|
preview_content_width ( ) |
Override $content_width in customizer previews. |
|
preview_skip_stylesheet ( boolean $skip_value ) : null | boolean |
Override $content_width in customizer previews. |
|
revision_admin_footer ( ) |
Print the theme switcher on revision.php and move it into place. |
|
revisions_switcher_box ( string $stylesheet = '' ) |
The HTML for the theme revision switcher box. |
|
sanitize_css ( string $css, array $args = [] ) : mixed | string |
Sanitize the CSS for users without unfiltered_html. |
|
sanitize_css_callback ( mixed $css, WP_Customize_Setting $setting ) : mixed | string |
The callback to handle sanitizing the CSS. Takes different arguments, hence the proxy function. |
|
sanitize_preprocessor ( string $preprocessor ) : null | string |
Make sure the preprocessor we're saving is one we know about. |
|
set_content_width ( ) |
Currently this filter function gets called on
'template_redirect' action and
'admin_init' action |
|
skip_stylesheet ( ) : mixed |
Determine whether or not we should have the theme skip its main stylesheet. |
|
style_filter ( string $current ) : mixed | void |
Filter the current theme's stylesheet for potentially nullifying it. |
|
update_custom_css_data ( array $args, string $stylesheet ) : mixed |
Filter to handle the processing of preprocessed css on save. |
|
wp_enqueue_scripts ( ) |
Handle the enqueueing of scripts for customize previews. |
|