Функции WordPress
Функция в терминах WordPress — это блок кода, который выполняет конкретную задачу или действие на вашем веб-сайте. Функции широко используются для расширения функциональности WordPress и настройки его работы в соответствии с вашими потребностями. Они представляют собой важный инструмент для веб-разработчиков, позволяя им создавать пользовательские решения и улучшать работу сайта.
AJAX
Cookie
HTTP
REST API
URL
- add_permastruct()
- add_query_arg()
- add_rewrite_endpoint()
- add_rewrite_rule()
- add_rewrite_tag()
- admin_url()
- download_url()
- esc_url()
- flush_rewrite_rules()
- get_author_posts_url()
- get_avatar_url()
- get_home_url()
- get_pagenum_link()
- get_site_url()
- get_the_post_thumbnail_url()
- get_trackback_url()
- home_url()
- plugin_dir_url()
- plugins_url()
- sanitize_url()
- site_url()
- the_post_thumbnail_url()
- url_to_postid()
- wp_get_attachment_image_url()
- wp_get_attachment_thumb_url()
- wp_get_attachment_url()
- wp_login_url()
- wp_logout_url()
- wp_parse_url()
Авторы
Агенты пользователя
Административная панель
Административный интерфейс
Архивы
Аутентификация
Виджеты
Вложения
- get_attachment_link()
- wp_delete_attachment()
- wp_generate_attachment_metadata()
- wp_get_attachment_caption()
- wp_get_attachment_id3_keys()
- wp_get_attachment_image()
- wp_get_attachment_image_sizes()
- wp_get_attachment_image_src()
- wp_get_attachment_image_srcset()
- wp_get_attachment_image_url()
- wp_get_attachment_link()
- wp_get_attachment_metadata()
- wp_get_attachment_thumb_url()
- wp_get_attachment_url()
- wp_insert_attachment()
Дата и время
Действия и фильтры
Дизайн
Записи
- add_post_meta()
- add_post_type_support()
- delete_post_meta()
- edit_post_link()
- get_adjacent_post()
- get_children()
- get_edit_post_link()
- get_extended()
- get_next_post()
- get_next_post_link()
- get_next_posts_link()
- get_permalink()
- get_post()
- get_post_ancestors()
- get_post_custom()
- get_post_custom_values()
- get_post_field()
- get_post_format()
- get_post_gallery()
- get_post_gallery_images()
- get_post_meta()
- get_post_permalink()
- get_post_status()
- get_post_thumbnail_id()
- get_post_time()
- get_post_timestamp()
- get_post_type()
- get_post_type_archive_link()
- get_post_type_object()
- get_post_types()
- get_posts()
- get_previous_post()
- get_previous_post_link()
- get_previous_posts_link()
- get_previous_posts_page_link()
- get_search_query()
- get_the_ID()
- get_the_author()
- get_the_author_link()
- get_the_author_meta()
- get_the_author_posts()
- get_the_author_posts_link()
- get_the_content()
- get_the_date()
- get_the_excerpt()
- get_the_permalink()
- get_the_post_navigation()
- get_the_post_thumbnail()
- get_the_post_thumbnail_caption()
- get_the_post_thumbnail_url()
- get_the_post_type_description()
- get_the_posts_navigation()
- get_the_posts_pagination()
- get_the_privacy_policy_link()
- get_the_tag_list()
- get_the_tags()
- get_the_taxonomies()
- get_the_term_list()
- get_the_terms()
- get_the_time()
- get_the_title()
- get_the_title_rss()
- get_to_ping()
- get_trackback_url()
- has_category()
- has_post_format()
- has_post_parent()
- has_post_thumbnail()
- has_tag()
- has_term()
- has_term_meta()
- have_comments()
- have_posts()
- is_new_day()
- is_post_publicly_viewable()
- is_post_status_viewable()
- is_post_type_archive()
- is_post_type_hierarchical()
- is_post_type_viewable()
- next_post_link()
- next_posts_link()
- post_class()
- post_exists()
- posts_nav_link()
- previous_post_link()
- register_post_status()
- set_post_thumbnail()
- set_post_thumbnail_size()
- setup_postdata()
- single_post_title()
- the_author_posts_link()
- the_post()
- the_post_navigation()
- the_post_thumbnail()
- the_post_thumbnail_url()
- the_posts_navigation()
- the_posts_pagination()
- update_post_meta()
- url_to_postid()
- wp_count_posts()
- wp_delete_post()
- wp_get_post_categories()
- wp_get_post_tags()
- wp_get_post_terms()
- wp_get_recent_posts()
- wp_insert_post()
- wp_kses_post()
- wp_reset_postdata()
- wp_set_post_terms()
- wp_update_post()
Запросы
Защита и безопасность
Календарь
Категории
- cat_is_ancestor_of()
- category_description()
- get_cat_ID()
- get_cat_name()
- get_categories()
- get_category()
- get_category_by_slug()
- get_category_link()
- get_category_parents()
- get_the_category()
- get_the_category_by_ID()
- get_the_category_list()
- get_the_category_rss()
- in_category()
- single_cat_title()
- the_category()
- wp_get_post_categories()
- wp_get_post_tags()
Комментарии
Меню
Метаданные
- add_meta()
- add_meta_box()
- add_metadata()
- add_post_meta()
- add_term_meta()
- add_user_meta()
- delete_post_meta()
- get_metadata()
- get_term_meta()
- has_term_meta()
- register_block_type()
- update_metadata()
- update_post_meta()
- update_term_meta()
- update_user_meta()
- wp_generate_attachment_metadata()
- wp_get_attachment_metadata()
- wp_style_add_data()
Метки
Многоязычность
Мультимедиа
- add_image_size()
- get_attached_file()
- get_attached_media()
- get_header_image()
- get_post_gallery_images()
- header_image()
- image_downsize()
- is_gd_image()
- media_handle_sideload()
- media_handle_upload()
- media_sideload_image()
- the_post_thumbnail()
- the_post_thumbnail_url()
- wp_generate_attachment_metadata()
- wp_get_attachment_caption()
- wp_get_attachment_id3_keys()
- wp_get_attachment_image()
- wp_get_attachment_image_sizes()
- wp_get_attachment_image_src()
- wp_get_attachment_image_srcset()
- wp_get_attachment_image_url()
- wp_get_attachment_link()
- wp_get_attachment_metadata()
- wp_get_attachment_thumb_url()
- wp_get_attachment_url()
- wp_get_image_editor()
- wp_get_upload_dir()
- wp_handle_upload()
- wp_insert_attachment()
- wp_video_shortcode()
Навигация
Настройки
Обновление
Обработка ошибок
Объекты
Оптимизация загрузки
Очистка и фильтрация
Пинги
Плагины
Пользователи
Разработка
Редактирование изображений
Редиректы и перенаправления
Роли и права
Сайдбары
Сервер
Системные требования
Скрипты и стили
Ссылки
- add_permastruct()
- comment_reply_link()
- comments_popup_link()
- edit_post_link()
- get_attachment_link()
- get_category_link()
- get_edit_post_link()
- get_next_post_link()
- get_next_posts_link()
- get_page_link()
- get_pagenum_link()
- get_permalink()
- get_post_permalink()
- get_post_type_archive_link()
- get_previous_post_link()
- get_previous_posts_link()
- get_previous_posts_page_link()
- get_term_link()
- get_the_author_link()
- get_the_author_posts_link()
- get_the_permalink()
- get_the_privacy_policy_link()
- next_post_link()
- next_posts_link()
- paginate_links()
- posts_nav_link()
- previous_post_link()
- the_author_posts_link()
- the_permalink()
- wp_get_attachment_link()
- wp_insert_link()
- wp_link_pages()
Стили и CSS
Страницы
- add_pages_page()
- add_submenu_page()
- get_page_by_path()
- get_page_children()
- get_page_hierarchy()
- get_page_link()
- get_page_of_comment()
- get_page_statuses()
- get_page_template()
- get_page_template_slug()
- get_page_templates()
- get_page_uri()
- get_pages()
- is_page()
- is_paged()
- wp_link_pages()
- wp_list_pages()
- wp_page_menu()
- wp_redirect()
Таксономии
- get_object_taxonomies()
- get_taxonomies()
- get_taxonomy()
- get_term()
- get_term_by()
- get_term_children()
- get_term_link()
- get_term_meta()
- get_term_parents_list()
- get_terms()
- get_the_taxonomies()
- is_object_in_taxonomy()
- is_object_in_term()
- is_tax()
- register_taxonomy_for_object_type()
- the_taxonomies()
- wp_get_object_terms()
- wp_get_post_terms()
- wp_get_term_taxonomy_parent_id()
- wp_insert_category()
- wp_insert_term()
Текст и форматирование
Темы
- add_theme_support()
- get_stylesheet()
- get_stylesheet_directory()
- get_stylesheet_directory_uri()
- get_stylesheet_uri()
- get_theme_file_path()
- get_theme_file_uri()
- get_theme_mod()
- get_theme_mods()
- get_theme_root()
- get_theme_root_uri()
- get_theme_roots()
- has_site_icon()
- is_child_theme()
- is_header_video_active()
- is_page_template()
- load_theme_textdomain()
Термины
Трансиенты
Трекбеки
Управление данными
Условные функции
- is_404()
- is_active_sidebar()
- is_active_widget()
- is_admin()
- is_admin_bar_showing()
- is_allowed_http_origin()
- is_archive()
- is_archived()
- is_attachment()
- is_author()
- is_blog_admin()
- is_blog_installed()
- is_category()
- is_child_theme()
- is_client_error()
- is_comment_feed()
- is_customize_preview()
- is_date()
- is_day()
- is_dynamic_sidebar()
- is_email()
- is_email_address_unsafe()
- is_embed()
- is_error()
- is_favicon()
- is_feed()
- is_front_page()
- is_gd_image()
- is_header_video_active()
- is_home()
- is_info()
- is_lighttpd_before_150()
- is_local_attachment()
- is_locale_switched()
- is_login()
- is_main_network()
- is_main_query()
- is_main_site()
- is_month()
- is_multi_author()
- is_multisite()
- is_nav_menu()
- is_nav_menu_item()
- is_network_admin()
- is_network_only_plugin()
- is_new_day()
- is_object_in_taxonomy()
- is_object_in_term()
- is_page()
- is_page_template()
- is_paged()
- is_php_version_compatible()
- is_plugin_active()
- is_plugin_active_for_network()
- is_plugin_inactive()
- is_plugin_paused()
- is_post_publicly_viewable()
- is_post_status_viewable()
- is_post_type_archive()
- is_post_type_hierarchical()
- is_post_type_viewable()
- is_preview()
- is_privacy_policy()
- is_search()
- is_single()
- is_singular()
- is_tag()
- is_tax()
- is_user_logged_in()
- is_wp_error()