Icono del sitio Imacreste

Funciones WordPress: theme.php

Todas las funciones que se usan habitualmente en el API de WordPress se encuentran en el núcleo, se usan para crear temas, plugins, crear menús nuevos en el gestor, etc. Vamos a ver donde se encuentran algunas de las más utilizadas.

Archivo: theme.php

En este fichero se recogen funciones para la creación de temas, plantillas y hojas de estilos.

$info_tema=wp_get_theme();
var_dump($info_tema);
echo get_stylesheet_directory();

Todas las funciones

Nuestra idea es ir comentando todas las funciones, de momento recogemos un listado, por si queremos ver todas las funciones del fichero de forma rápida.

wp_get_themes
wp_get_theme
wp_clean_themes_cache
is_child_theme
get_stylesheet
get_stylesheet_directory
get_stylesheet_directory_uri
get_stylesheet_uri
get_locale_stylesheet_uri
get_template
get_template_directory
get_template_directory_uri
get_theme_roots
register_theme_directory
search_theme_directories
get_theme_root
get_theme_root_uri
get_raw_theme_root
locale_stylesheet
preview_theme
_preview_theme_template_filter
_preview_theme_stylesheet_filter
preview_theme_ob_filter
preview_theme_ob_filter_callback
switch_theme
validate_current_theme
get_theme_mods
get_theme_mod
set_theme_mod
remove_theme_mod
remove_theme_mods
get_header_textcolor
header_textcolor
display_header_text
has_header_image
get_header_image
_get_random_header_data
get_random_header_image
is_random_header_image
header_image
get_uploaded_header_images
get_custom_header
register_default_headers
unregister_default_headers
get_background_image
background_image
get_background_color
background_color
_custom_background_cb
add_editor_style
remove_editor_styles
get_editor_stylesheets
add_theme_support
_custom_header_background_just_in_time
get_theme_support
remove_theme_support
_remove_theme_support
current_theme_supports
require_if_theme_supports
_delete_attachment_theme_mod
check_theme_switched
_wp_customize_include
_wp_customize_loader_settings
wp_customize_url
wp_customize_support_script
is_customize_preview

Salir de la versión móvil