Хуки

wpcommunity/main/before 1.0

Хук перед выводом основного контентом

/**
 * Добавление вывода wpstories в отдельном блоке перед контентом
 */
add_action( 'wpcommunity/main/before', function () {
    if ( is_page( 'join' ) ) {
        return;
    }
    ?>
    <div class="post-card"><?php do_action( 'wpstories_feed' ) ?></div>
    <?php
}, 9 );

wpcommunity/main/after 1.0

Хук после выводом основного контентом

/**
 * Добавление вывода после основного контента
 */
add_action( 'wpcommunity/main/after', function () {
    ?>
    <div class="after-content-banner">
        <p>Спасибо за прочтение! Подписывайтесь на наш блог.</p>
    </div>
    <?php
}, 10 );

wpcommunity/author/name 1.0

Позволяет задать имя пользователя на странице автора

/**
 * Изменение отображения имени автора
 */
add_filter( 'wpcommunity/author/name', function ( $name ) {
    if ( is_author() ) {
        return 'Наш любимый автор: ' . $name;
    }
    return $name;
} );

wpcommunity/theme/init 1.0

Хук инициализации теты

/**
 * Включение возможностей поддержки темы
 */
add_action( 'wpcommunity/theme/init', function () {
    add_theme_support( 'post-thumbnails' );
    add_theme_support( 'custom-logo' );
} );

Хук вывода элементов подвала

/**
 * Добавление уведомления об авторских правах в подвал сайта
 */
add_action( 'wpcommunity/footer/footer', function () {
    ?>
    <div class="footer-note">
        &copy; <?php echo date('Y'); ?> Все права защищены.
    </div>
    <?php
} );

wpcommunity/header/inner 1.0

Хук для внутренней части шапки

/**
 * Добавление объявления внутри шапки сайта
 */
add_action( 'wpcommunity/header/inner', function () {
    ?>
    <div class="header-announcement">
        <p>🎉 Бесплатная доставка при заказе от 1000 ₽!</p>
    </div>
    <?php
} );

wpcommunity/posts/loop 1.0

Основной хук цикла вывода постов

/**
 * Добавление рекламного поста в цикле записей
 */
add_action( 'wpcommunity/posts/loop', function () {
    if ( is_home() && ! is_paged() ) {
        ?>
        <article class="sponsored-post">
            <h2>Партнерский материал</h2>
            <p>Читайте наш новый спецпроект!</p>
        </article>
        <?php
    }
}, 5 );

wpcommunity/comments/output 1.0

Хук вывода комментариев

/**
 * Добавление примечания перед выводом комментариев
 */
add_action( 'wpcommunity/comments/output', function () {
    ?>
    <p class="comments-note">💬 Оставляйте только конструктивные комментарии!</p>
    <?php
}, 5 );

wpcommunity/comments/soft_delete_undo 1.0

Хук перед удалением комментария

wpcommunity/comments/soft_delete 1.0

Хук перед помещение комментария в корзину

comment_text

wpcommunity/assets/script_deps 1.0

Хук для подготовки зависимостей основного скрипта темы

wpcommunity/assets/script_globals 1.0

Хук для подготовки параметров основного скрипта темы

wpcommunity/assets/enqueue_scripts

wpcommunity/comments/comment_avatar

wpcommunity/comments/can_show 1.0

wpcommunity/context/conditions 1.0

Allows to add additional conditions for the context

wpcommunity/context/is_home

wpcommunity/css_rule/setup_prefixes 1.0

Позволяет изменить префиксы для css правил

wpcommunity/customizer/option 1.0

Allows to change value of customize option after retrieving

wpcommunity/appearance/default_theme 1.0

wpcommunity/customizer/mobile_preview_width 1.0

Allows to change width of preview window for mobile in customizer

wpcommunity/customizer/tablet_preview_width 1.0

Allows to change width of preview window for tablet in customizer

wpcommunity/advertisement/item_content 1.0

wpcommunity/breadcrumbs/item_additional_content 1.0

Allows to set additional content for breadcrumb item

wpcommunity/breadcrumbs/init 1.0

Allows to set properties for BreadcrumbsBuilder

wpcommunity/breadcrumbs/output_args 1.0

Allows to change output args

wpcommunity/posts_loop/after_card

wpcommunity/frontend_editor/upload_files_roles 1.0

wpcommunity/editor/settings 1.0

wpcommunity/karma/history_limit 1.0

Allow to increase or decrease karma history limit

wpcommunity/related/from_post_args 1.0

wpcommunity/user_subscription/prepare_query 1.0

wpcommunity/views/cache_enabled

wpcommunity/views/options 1.0

wpcommunity/views/should_count 1.0

wpcommunity/views/meta_field 1.0

wpcommunity/views/initial_value 1.0

wpcommunity/post_thumbnail_html/size 1.0

Filters the size used to display the post thumbnail image in the ‘Featured image’ meta box.
Note: When a theme adds ‘post-thumbnail’ support, a special ‘post-thumbnail’
image size is registered, which differs from the ‘thumbnail’ image size
managed via the Settings > Media screen.

wpcommunity/post_thumbnail_html/html 1.0

Filters the admin post thumbnail HTML markup to return.

wpcommunity/tag/attributes 1.0

Allows to change tag attributes

wpcommunity/functions/get_currency_beauty

wpcommunity/functions/format_price

wpcommunity/navigation/expand_icon 1.0

Allows to change menu expand icon

wpcommunity/content/width 1.0

Установите ширину содержимого в пикселях, основываясь на дизайне и стилях темы.

wpcommunity/layout/header_html_1_content 1.1

wpcommunity/layout/header_html_2_content 1.1

wpcommunity/layout/css

wpcommunity/layout/output_pagination 1.0

wpcommunity/layout/content_full_width 1.0

wpcommunity/profile/prepare_tabs

wpcommunity/profile/initial_tabs 1.0

wpcommunity/user_comments/per_page

wpcommunity/sidebar/is_hidden 1.0

wpcommunity/logger/file_dir 1.0

wpcommunity/comment/author

wpcommunity/comment/use_store_author_name 1.0

wpcommunity/membership/badge 1.0

Allows to change membership badge

wpcommunity/membership/is_post_accessible 1.0

wpcommunity/mobile_menu/hamburger_from_width 1.0

Allows to change value of device width for hamburger output

wpcommunity/order/create_order

wpcommunity/order_status/change_status

wpcommunity/subscriptions/additional_items

Constructor

wpcommunity/subscriptions/items 1.0

Allows to change subscription items order and structure

wpcommunity/subscriptions/redirect_to 1.0

Allows to set redirect url if there are no plans

wpcommunity/prodamus/created_order_params

wpcommunity/recurring_payment/notify_scheduled_date

wpcommunity/recurring_payment/scheduled_orders_args 1.0

wpcommunity/yookassa/create_payment_params 1.0

wpcommunity/shortcodes/init_core 1.1

Позволяет влиять на работу классов из core

wpcommunity/contact_form/fields 1.1

Позволяет изменить поля контактной формы

wpcommunity/social/services

Allows to modify list of available social share services

wpcommunity/social/share_image_size

Allows to change share image size

wpcommunity/social/render_share_button

Allows to change share button render functions

wpcommunity/telegram/send_post 1.0

wpcommunity/telegram/post_published_data 1.0

Allows to modify message data for telegram

wpcommunity/telegram/post_published_variables 1.0

Allows to add additional variables for post published message

wpcommunity/user/avatar_alt 1.1

wpcommunity/user/attachment_blog_id 1.0

wpcommunity/user/logout_menu_item 1.0

wpcommunity/vote/change

Получить метод сохранения голосов, по юзерам или IP

wpcommunity/menu_widget/pages

Allows to modify available pages for menu widget

wpcommunity/menu_widget/items 1.0

wpcommunity/comments/comment_form_args

This filter is documented in wp-includes/link-template.php

wpcommunity/post/content 1.0

wpcommunity/post-card/full-text

wpcommunity/post_card/content 1.0

wpcommunity/post_card/footer_rights

wpcommunity/post_card/footer 1.0

wpcommunity/post_card/footer_meta 1.0

wpcommunity/post-card/author_name

wpcommunity/post_card/header_rights 1.0

wpcommunity/post_card/header_meta 1.0

wpcommunity/post_card/header 1.0

wpcommunity/post_content/before

wpcommunity/post_content/after

wpcommunity/post/footer 1.0

wpcommunity/post/footer_meta 1.0

wpcommunity/post/header_meta 1.0

wpcommunity/post/header 1.0

wpcommunity/post/footer_meta_right 1.0

wpcommunity/post/header_meta_right 1.0

wpcommunity/post_card/footer_meta_right 1.0

wpcommunity/post_card/header_meta_right 1.0

wpcommunity/post-card/tag

wpcommunity/post_card/entry

wpcommunity/profile/show_login_input 1.0

Позволяет скрыть ввод логина

/**
 * Скрыть поле ввода логина в профиле пользователя
 */
add_filter( 'wpcommunity/profile/show_login_input', '__return_false' );

wpcommunity/publish_form/topic_args 1.0

Позволяет изменять параметры для доступных тем на странице публикации

  • wpcommunity/main/before 1.0
  • wpcommunity/main/after 1.0
  • wpcommunity/author/name 1.0
  • wpcommunity/theme/init 1.0
  • wpcommunity/footer/footer 1.0
  • wpcommunity/header/inner 1.0
  • wpcommunity/posts/loop 1.0
  • wpcommunity/comments/output 1.0
  • wpcommunity/auth/secure_cookie
  • wpcommunity/comments/soft_delete_undo 1.0
  • wpcommunity/comments/soft_delete 1.0
  • comment_text
  • wpcommunity/assets/script_deps 1.0
  • wpcommunity/assets/script_globals 1.0
  • wpcommunity/assets/enqueue_scripts
  • wpcommunity/comments/author_link
  • wpcommunity/comments/comment_avatar
  • wpcommunity/comments/can_show 1.0
  • wpcommunity/context/conditions 1.0
  • wpcommunity/context/is_home
  • wpcommunity/css_rule/setup_prefixes 1.0
  • wpcommunity/customizer/option 1.0
  • wpcommunity/appearance/default_theme 1.0
  • wpcommunity/customizer/mobile_preview_width 1.0
  • wpcommunity/customizer/tablet_preview_width 1.0
  • wpcommunity/advertisement/item_content 1.0
  • wpcommunity/breadcrumbs/item_additional_content 1.0
  • wpcommunity/breadcrumbs/init 1.0
  • wpcommunity/breadcrumbs/output_args 1.0
  • wpcommunity/posts_loop/after_card
  • wpcommunity/frontend_editor/upload_files_roles 1.0
  • wpcommunity/editor/settings 1.0
  • wpcommunity/karma/history_limit 1.0
  • wpcommunity/related/yarpp_enabled 1.0
  • wpcommunity/related/count 1.0
  • wpcommunity/related/posts 1.0
  • wpcommunity/related/from_post_args 1.0
  • wpcommunity/related/from_taxonomies_args 1.0
  • wpcommunity/related/random 1.0
  • wpcommunity/user_subscription/prepare_query 1.0
  • wpcommunity/views/cache_enabled
  • wpcommunity/views/options 1.0
  • wpcommunity/views/should_count 1.0
  • wpcommunity/views/meta_field 1.0
  • wpcommunity/views/initial_value 1.0
  • wpcommunity/post_thumbnail_html/size 1.0
  • wpcommunity/post_thumbnail_html/html 1.0
  • wpcommunity/tag/attributes 1.0
  • wpcommunity/functions/get_currency_beauty
  • wpcommunity/functions/format_price
  • wpcommunity/navigation/expand_icon 1.0
  • wpcommunity/navigation/preserve_removed_link_classes
  • wpcommunity/content/width 1.0
  • wpcommunity/layout/header_html_1_content 1.1
  • wpcommunity/layout/header_html_2_content 1.1
  • wpcommunity/footer-block/content 1.0
  • wpcommunity/layout/css
  • wpcommunity/layout/output_pagination 1.0
  • wpcommunity/layout/content_full_width 1.0
  • wpcommunity/profile/prepare_tabs
  • wpcommunity/profile/initial_tabs 1.0
  • wpcommunity/user_comments/per_page
  • wpcommunity/sidebar/is_hidden 1.0
  • wpcommunity/logger/file_dir 1.0
  • wpcommunity/comment/author
  • wpcommunity/comment/use_store_author_name 1.0
  • wpcommunity/membership/badge 1.0
  • wpcommunity/membership/is_post_accessible 1.0
  • wpcommunity/mobile_menu/hamburger_from_width 1.0
  • wpcommunity/order/create_order
  • wpcommunity/order_status/change_status
  • wpcommunity/subscriptions/additional_items
  • wpcommunity/subscriptions/items 1.0
  • wpcommunity/subscriptions/redirect_to 1.0
  • wpcommunity/prodamus/created_order_params
  • wpcommunity/recurring_payment/notify_scheduled_date
  • wpcommunity/recurring_payment/scheduled_orders_args 1.0
  • wpcommunity/yookassa/create_payment_params 1.0
  • wpcommunity/shortcodes/init_core 1.1
  • wpcommunity/contact_form/fields 1.1
  • wpcommunity/social/services
  • wpcommunity/social/share_image_size
  • wpcommunity/social/render_share_button
  • wpcommunity/social/profile_link 1.0
  • wpcommunity/telegram/send_post 1.0
  • wpcommunity/telegram/post_published_data 1.0
  • wpcommunity/telegram/post_published_variables 1.0
  • wpcommunity/user/avatar_alt 1.1
  • wpcommunity/user/attachment_blog_id 1.0
  • wpcommunity/user/logout_menu_item 1.0
  • wpcommunity/vote/change
  • wpcommunity/menu_widget/pages
  • wpcommunity/menu_widget/items 1.0
  • wpcommunity/comments/comment_form_args
  • wpcommunity/post/content 1.0
  • wpcommunity/post-card/full-text
  • wpcommunity/post_card/content 1.0
  • wpcommunity/post_card/footer_rights
  • wpcommunity/post_card/footer 1.0
  • wpcommunity/post_card/footer_meta 1.0
  • wpcommunity/post-card/author_name
  • wpcommunity/post_card/header_rights 1.0
  • wpcommunity/post_card/header_meta 1.0
  • wpcommunity/post_card/header 1.0
  • wpcommunity/post_content/before
  • wpcommunity/post_content/after
  • wpcommunity/post/footer 1.0
  • wpcommunity/post/footer_meta 1.0
  • wpcommunity/post/header_meta 1.0
  • wpcommunity/post/header 1.0
  • wpcommunity/post/footer_meta_right 1.0
  • wpcommunity/post/header_meta_right 1.0
  • wpcommunity/post_card/footer_meta_right 1.0
  • wpcommunity/post_card/header_meta_right 1.0
  • wpcommunity/post-card/tag
  • wpcommunity/post_card/entry
  • wpcommunity/profile/show_login_input 1.0
  • wpcommunity/publish_form/topic_args 1.0