´øCË«ßò wp-data-controls 8²ø…ˆS €ûKy}AZÌ wp-customize-widgets ˆS Ä›š|r‰ wp-format-library ²ø…ŠÜó €8bfÙÑ wp-list-reusable-blocks t 5R ÿg¹ wp-redux-routine 8²ø…ˆ³ A½ÑÍø� wp-is-shallow-equal …ˆc ÆH…MýWçÉ wp-keyboard-shortcuts £ M£Òe! Ÿ wp-priority-queue ²ø…ˆó wªŸ¬¾m» wp-reusable-blocks ø…ˆƒ ŠÊæd8KË option_theme_switched Õó OC×>·<…¿ wp-server-side-render Õó {{kubio-blog}} ëµ8²ø…ˆÓ {{kubio-home}} ëµ8²ø…ˆ# {{kubio-blog}} ƒµ8²ø…ˆs {{kubio-home}} ëµ8²ø…ˆC à¦íA·rj option_upload_url_path .wp-block-audio h1 ø…ˆ .wp-block-audio h2 ø…šï .wp-block-buttons ²ø…ˆ ó .wp-block-audio cite ˆ ó .wp-block-buttons h6 ˆ# .wp-block-buttons h5 ˆ ó .wp-block-buttons h4 ˆ à .wp-block-buttons h3 ˆ .wp-block-buttons h2 ˆc .wp-block-buttons h1 ˆ³ .wp-block-code h6 ²ø…ˆ .wp-block-buttons cite s .wp-block-code h5 ²ø…ˆÓ .wp-block-code h4 ²ø…ˆs .wp-block-code h3 ²ø…ˆC .wp-block-code h2 ²ø…ˆ“ .wp-block-code h1 ²ø…ˆã .wp-block-code cite …ˆS .wp-block-column 8²ø…ˆ£ .wp-block-column h6 …ˆÓ .wp-block-column h5 …ˆ£ .wp-block-column h4 …ˆó .wp-block-column h3 …ˆÃ .wp-block-column h2 …ˆ .wp-block-column h1 …ˆc .wp-block-columns ²ø…ˆ# .wp-block-column cite # .wp-block-columns h6 ˆ S .wp-block-columns h5 ˆ# .wp-block-columns h4 ˆs .wp-block-columns h3 ˆC .wp-block-columns h2 ˆ“ .wp-block-columns h1 ˆã .wp-block-details ²ø…ˆ £ .wp-block-columns cite £ .wp-block-details h6 ˆ Ó .wp-block-details h5 ˆ £ .wp-block-details h4 ˆ ó .wp-block-details h3 ˆ à .wp-block-details h2 ˆ .wp-block-details h1 ˆ c .wp-block-embed h6 ø…ˆ .wp-block-details cite # .wp-block-embed h5 ø…ˆ ƒ .wp-block-embed h4 ø…ˆ# .wp-block-embed h3 ø…ˆs .wp-block-embed h2 ø…ˆC .wp-block-embed h1 ø…ˆ“ .wp-block-freeform ø…ˆS .wp-block-embed cite ˆS .wp-block-freeform h6 ƒ .wp-block-freeform h5 S .wp-block-freeform h4 £ .wp-block-freeform h3 ó .wp-block-freeform h2 à .wp-block-freeform h1 .wp-block-group h6 ø…ˆ3 .wp-block-freeform cite .wp-block-group h5 ø…ˆ³ .wp-block-group h4 ø…ˆÓ .wp-block-group h3 ø…ˆ # .wp-block-group h2 ø…ˆ s .wp-block-group h1 ø…ˆ C .wp-block-html h6 ²ø…°“ .wp-block-group cite ˆ .wp-block-html h5 ²ø…ˆ ã .wp-block-html h4 ²ø…ˆ .wp-block-html h3 ²ø…ˆS .wp-block-html h2 ²ø…ˆ£ his->social_profiles_helper->set_person_social_profiles( $params['user_id'], $social_profiles ); if ( \count( $failures ) === 0 ) { return (object) [ 'success' => true, 'status' => 200, ]; } return (object) [ 'success' => false, 'status' => 200, 'error' => 'Could not save some options in the database', 'failures' => $failures, ]; } /** * Gets the values for the social profiles. * * @param int $user_id The person ID. * * @return object The response object. */ public function get_person_social_profiles( $user_id ) { return (object) [ 'success' => true, 'status' => 200, 'social_profiles' => $this->social_profiles_helper->get_person_social_profiles( $user_id ), ]; } /** * Stores the values to enable/disable tracking. * * @param array $params The values to store. * * @return object The response object. */ public function set_enable_tracking( $params ) { $success = true; $option_value = $this->options_helper->get( 'tracking' ); if ( $option_value !== $params['tracking'] ) { $this->options_helper->set( 'toggled_tracking', true ); $success = $this->options_helper->set( 'tracking', $params['tracking'] ); } /** * Action: 'wpseo_post_update_enable_tracking' - Allows for Hiive event tracking. * * @param array $new_value The new value. * @param array $old_value The old value. * @param bool $failure Whether the option failed to be stored. * * @internal */ // $success is negated to be aligned with the other two actions which pass $failures. \do_action( 'wpseo_ftc_post_update_enable_tracking', $params['tracking'], $option_value, ! $success ); if ( $success ) { return (object) [ 'success' => true, 'status' => 200, ]; } return (object) [ 'success' => false, 'status' => 500, 'error' => 'Could not save the option in the database', ]; } /** * Checks if the current user has the capability a specific user. * * @param int $user_id The id of the user to be edited. * * @return object The response object. */ public function check_capability( $user_id ) { if ( $this->can_edit_profile( $user_id ) ) { return (object) [ 'success' => true, 'status' => 200, ]; } return (object) [ 'success' => false, 'status' => 403, ]; } /** * Stores the first time configuration state. * * @param array $params The values to store. * * @return object The response object. */ public function save_configuration_state( $params ) { // If the finishedSteps param is not present in the REST request, it's a malformed request. if ( ! isset( $params['finishedSteps'] ) ) { return (object) [ 'success' => false, 'status' => 400, 'error' => 'Bad request', ]; } // Sanitize input. $finished_steps = \array_map( '\sanitize_text_field', \wp_unslash( $params['finishedSteps'] ) ); $success = $this->options_helper->set( 'configuration_finished_steps', $finished_steps ); if ( ! $success ) { return (object) [ 'success' => false, 'status' => 500, 'error' => 'Could not save the option in the database', ]; } // If all the five steps of the configuration have been completed, set first_time_install option to false. if ( \count( $params['finishedSteps'] ) === 3 ) { $this->options_helper->set( 'first_time_install', false ); } return (object) [ 'success' => true, 'status' => 200, ]; } /** * Gets the first time configuration state. * * @return object The response object. */ public function get_configuration_state() { $configuration_option = $this->options_helper->get( 'configuration_finished_steps' ); if ( $configuration_option !== null ) { return (object) [ 'success' => true, 'status' => 200, 'data' => $configuration_option, ]; } return (object) [ 'success' => false, 'status' => 500, 'error' => 'Could not get data from the database', ]; } /** * Checks if the current user has the capability to edit a specific user. * * @param int $person_id The id of the person to edit. * * @return bool */ private function can_edit_profile( $person_id ) { return \current_user_can( 'edit_user', $person_id ); } /** * Gets the old values for the given fields. * * @param array $fields_names The fields to get the old values for. * * @return array The old values. */ private function get_old_values( array $fields_names ): array { $old_values = []; foreach ( $fields_names as $field_name ) { $old_values[ $field_name ] = $this->options_helper->get( $field_name ); } return $old_values; } } {"id":222,"count":1,"description":"","link":"https:\/\/artcontent.eu\/nl\/tag\/armbanden\/","name":"armbanden","slug":"armbanden","taxonomy":"post_tag","meta":[],"yoast_head":"\n