базовый адрес: https://goodgame.ru/api/4/
ниже идут найденные методом тыка эндпоинты
для некоторых приведены примеры запроса,
для остальных они не известны и приведены коды ответов для запросов без параметров
| <?php | |
| /** | |
| * Plugin Name: Temp Login Links (WP-CLI) | |
| * Description: Генерация временных ссылок для входа через WP-CLI. | |
| * Version: 1.3 | |
| * Author: campusboy | |
| * | |
| * Скачать к себе в текущую директрою | |
| * curl -L https://gist.github.com/campusboy87/9fa31f35dce933d48a5204d978e92c29/raw -o wp-login-cli.php | |
| * |
| <?php | |
| ( new CF7_Notification_Shortcodes() )->hooks(); | |
| /** | |
| * Allows you to use shortcodes in the CF7 form settings in the "Notifications when submitting a form" tab. | |
| */ | |
| class CF7_Notification_Shortcodes { | |
| private array $shortcodes = []; |
| <?php | |
| add_action( 'restrict_manage_posts', function () { | |
| global $wp_filter; | |
| $action = 'restrict_manage_posts'; | |
| $priority = 11; | |
| $method = 'add_seo_filters'; | |
| if ( empty( $wp_filter[ $action ]->callbacks[ $priority ] ) ) { |
базовый адрес: https://goodgame.ru/api/4/
ниже идут найденные методом тыка эндпоинты
для некоторых приведены примеры запроса,
для остальных они не известны и приведены коды ответов для запросов без параметров
| <?php | |
| /** | |
| * Получает значения repeat acf поля с учётом пагинации. | |
| * | |
| * todo: | |
| * 1) Кеширование | |
| * 2) Соответствие имен вложенных полей с настройками repeat поля. | |
| * 3) Учитывать вложенные repeat/группы поля. | |
| * |
| $boundary = str_repeat( '-', 24 ) . wp_generate_password( 16 ); | |
| $headers = array( | |
| 'content-type' => 'multipart/form-data; boundary=' . $boundary, | |
| ); | |
| if ( ! isset( $files['path'] ) ) { | |
| $error_message = 'Invalid arguments'; | |
| return array( $success, $error_message, $word_count, $individual_word_count ); | |
| } |
| <?php | |
| function acf_add_location_site() { | |
| $key = 'site-location'; | |
| add_filter( 'acf/location/rule_types', function ( $choices ) use ( $key ) { | |
| $choices['Мультисайт'][ $key ] = 'Месторасположение'; | |
| return $choices; | |
| } ); |
| <?php | |
| class CT_CF7 { | |
| private $form_id = 51373; | |
| private $form_path_tpl = '/templates/parts/form-need-help'; | |
| public function __construct() { | |
| add_action( 'wpcf7_autop_or_not', '__return_false' ); | |
| add_action( 'wpcf7_contact_form', [ $this, 'init' ] ); | |
| } |
| <?php | |
| add_action( 'acf/init', 'set_acf_pro_license' ); | |
| function set_acf_pro_license() { | |
| global $acf_instances; | |
| if ( isset( $acf_instances['ACF_Admin_Updates'] ) && ! get_option( 'acf_pro_license' ) ) { | |
| /** | |
| * @var ACF_Admin_Updates $acf |