Plugin Directory

Changeset 1750040


Ignore:
Timestamp:
10/20/2017 05:36:26 PM (8 years ago)
Author:
alexvorn2
Message:

Update functions slug.

Location:
pre-tag-for-wp-editor/trunk
Files:
2 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • pre-tag-for-wp-editor/trunk/actions.php

    r1749416 r1750040  
    55
    66
    7 $pre_tag_wp_editor = pre_tag_wp_editor();
    8 $plugin_file = $pre_tag_wp_editor->file;
     7$pre_tag_for_wp_editor = pre_tag_for_wp_editor();
     8$plugin_file = $pre_tag_for_wp_editor->file;
    99
    1010// Plugin Activation
    11 register_activation_hook( $plugin_file,                               'pre_tag_wp_editor__activation_action'                          );
     11register_activation_hook( $plugin_file,                               'pre_tag_for_wp_editor__activation_action'                          );
    1212
    1313// Plugin Deactivation
    14 register_deactivation_hook( $plugin_file,                             'pre_tag_wp_editor__deactivation_action'                        );
     14register_deactivation_hook( $plugin_file,                             'pre_tag_for_wp_editor__deactivation_action'                        );
  • pre-tag-for-wp-editor/trunk/includes/admin/actions.php

    r1749416 r1750040  
    88
    99// For registering styles and scripts
    10 add_action( 'admin_init',                                                       'pre_tag_wp_editor__register_scripts_and_styles_admin_action'               );
     10add_action( 'admin_init',                                                       'pre_tag_for_wp_editor__register_scripts_and_styles_admin_action'               );
    1111
    1212// For adding the script files to the array that will get used later
    13 add_action( 'pre_tag_wp_editor__enqueue_style_scripts_admin_settings',          'pre_tag_wp_editor__enqueue_style_scripts_admin_settings'                   );
     13add_action( 'pre_tag_for_wp_editor__enqueue_style_scripts_admin_settings',          'pre_tag_for_wp_editor__enqueue_style_scripts_admin_settings'                   );
    1414
    1515// For priting styles and scripts files urls in header
    16 add_action( 'admin_enqueue_scripts',                                            'pre_tag_wp_editor__enqueue_style_scripts_by_hook_suffix_action_action'     );
     16add_action( 'admin_enqueue_scripts',                                            'pre_tag_for_wp_editor__enqueue_style_scripts_by_hook_suffix_action_action'     );
  • pre-tag-for-wp-editor/trunk/includes/admin/functions.php

    r1749416 r1750040  
    55
    66// Registering scripts and styles for later
    7 function pre_tag_wp_editor__register_scripts_and_styles_admin_action() {
    8     $pre_tag_wp_editor                       = pre_tag_wp_editor();
    9     $includes_url                            = $pre_tag_wp_editor->includes_url;
    10     $version                                 = $pre_tag_wp_editor->version;
     7function pre_tag_for_wp_editor__register_scripts_and_styles_admin_action() {
     8    $pre_tag_for_wp_editor                       = pre_tag_for_wp_editor();
     9    $includes_url                            = $pre_tag_for_wp_editor->includes_url;
     10    $version                                 = $pre_tag_for_wp_editor->version;
    1111   
    1212    // pre tag to wp_editor
    13     wp_register_script( 'pre-tag-wp-editor',    $includes_url . 'admin/js/pre-tag-wp-editor.js',    array(), $version, true );
     13    wp_register_script( 'pre-tag-for-wp-editor',    $includes_url . 'admin/js/pre-tag-for-wp-editor.js',    array(), $version, true );
    1414}
    1515
    1616// Function for enqueue styles and scripts in the footer and header for custom pages in WordPress Dashboard
    17 function pre_tag_wp_editor__enqueue_style_scripts_by_hook_suffix_action_action() {
     17function pre_tag_for_wp_editor__enqueue_style_scripts_by_hook_suffix_action_action() {
    1818    global $hook_suffix;
    1919
    20     $settings = apply_filters( 'pre_tag_wp_editor__enqueue_style_scripts_admin_settings', array() );
     20    $settings = apply_filters( 'pre_tag_for_wp_editor__enqueue_style_scripts_admin_settings', array() );
    2121   
    2222    if ( ! empty ( $settings ) ) {
     
    4141
    4242// List of dashboard pages and what to add
    43 function pre_tag_wp_editor__enqueue_style_scripts_admin_settings( $settings_options = array() ) {
     43function pre_tag_for_wp_editor__enqueue_style_scripts_admin_settings( $settings_options = array() ) {
    4444
    4545    // Edit post page
     
    4747        'menu_slug' => 'post.php',
    4848        'scripts'   => array(
    49             'pre-tag-wp-editor',
     49            'pre-tag-for-wp-editor',
    5050        ),
    5151        'styles'   => array(
     
    5858        'menu_slug' => 'post-new.php',
    5959        'scripts'   => array(
    60             'pre-tag-wp-editor',
     60            'pre-tag-for-wp-editor',
    6161        ),
    6262        'styles'   => array(
     
    6969        'menu_slug' => 'widgets.php',
    7070        'scripts'   => array(
    71             'pre-tag-wp-editor',
     71            'pre-tag-for-wp-editor',
    7272        ),
    7373        'styles'   => array(
     
    8080        'menu_slug' => 'customize.php',
    8181        'scripts'   => array(
    82             'pre-tag-wp-editor',
     82            'pre-tag-for-wp-editor',
    8383        ),
    8484        'styles'   => array(
Note: See TracChangeset for help on using the changeset viewer.