Méthode | Description | |
---|---|---|
admin_head ( ) | Fires in for all admin pages. | |
admin_print_footer_scripts ( ) | Prints any scripts and data queued for the footer. | |
admin_print_scripts ( ) | Fires when scripts are printed for all admin pages. | |
getInstance ( ) : WPDKServiceShortcodes | Create or return a singleton instance of WPDKServiceShortcodes | |
init ( ) : WPDKServiceShortcodes | Alias of getInstance(); | |
mce_buttons ( array $buttons ) | Filter the first-row list of TinyMCE buttons (Visual tab). | |
mce_external_plugins ( $plugin_array ) | Filter the list of TinyMCE external plugins. | |
wpdk_geo ( array $atts, string $content = null ) : boolean | string | Display a content of shortcode only if the user geo localization info rispect the shortcodes params. | |
wpdk_gist ( array $atts, string $content = null ) : string | Return the GitHub include script Gist. Use [wpdk_gist id="762771662"] | |
wpdk_is_user_logged_in ( array $atts, string $content = null ) : boolean | string | Display a content of shortcode only if the user is logged in. In addition you can set below attributes: | |
wpdk_is_user_not_logged_in ( array $attrs, string $content = null ) : boolean | string | Display a content of shortcode only if the user is NOT logged in. |
Méthode | Description | |
---|---|---|
shortcodes ( ) : array | Return a Key value pairs array with key as shortcode name and value TRUE/FALSE for turn on/off the shortcode. |
public admin_print_scripts ( ) |
public static getInstance ( ) : WPDKServiceShortcodes | ||
Résultat | WPDKServiceShortcodes |
public static init ( ) : WPDKServiceShortcodes | ||
Résultat | WPDKServiceShortcodes |
public mce_buttons ( array $buttons ) | ||
$buttons | array | First-row list of buttons. |
public mce_external_plugins ( $plugin_array ) |
protected shortcodes ( ) : array | ||
Résultat | array | Shortcode array |