WordPress.org

Ready to get started?Download WordPress

Forums

SB Welcome Email Editor
plugin doesn't work anymore.. (2 posts)

  1. JibsouX
    Member
    Posted 1 year ago #

    Since the last update plusgin megabug..

    no saving
    and test button réinitialize all setting..

    WTF ????

    WP 3.4.2
    Theme Fullscene
    custom :

    // Mettre une image perso dans /images/gravatar-perso.png pour gravatar par défaut.
    add_filter( 'avatar_defaults', 'gravatar_perso' );
    function gravatar_perso ($avatar_defaults) {
    $myavatar = get_bloginfo('template_directory') . '/images/gravatar-perso.png';
    $avatar_defaults[$myavatar] = "Avatar perso : /images/gravatar-perso.png ";
    return $avatar_defaults;}
    // Désactiver la notification de mise à jour de WP.
    add_filter('pre_site_transient_update_core',create_function('$a',"return null;"));
    // TinyMCE Tweak.
    function wpc_boutons_tinymce($buttons){$buttons[]='sub';$buttons[]='sup';$buttons[]='fontselect';$buttons[]='fontsizeselect';return $buttons;}add_filter("mce_buttons_2","wpc_boutons_tinymce");
    // Désactiver Le Dashboard sauf pour les admins.
    function remove_the_dashboard () {
    if (current_user_can('level_10')) {
    return;}else {
    global $menu, $submenu, $user_ID;
    $the_user = new WP_User($user_ID);
    reset($menu); $page = key($menu);
    while ((__('Dashboard') != $menu[$page][0]) && next($menu))
    $page = key($menu);
    if (__('Dashboard') == $menu[$page][0]) unset($menu[$page]);
    reset($menu); $page = key($menu);
    while (!$the_user->has_cap($menu[$page][1]) && next($menu))
    $page = key($menu);
    if (preg_match('#wp-admin/?(index.php)?$#',$_SERVER['REQUEST_URI']) && ('index.php' != $menu[$page][2]))
    wp_redirect(get_option('siteurl') . '/wp-admin/post-new.php');}}
    add_action('admin_menu', 'remove_the_dashboard');
    // Suppr admin bar.
    add_filter('show_admin_bar','__return_false');
    // Désactiver un morceau de l'adminbar.
    function edit_admin_bar() {
        global $wp_admin_bar;
        $wp_admin_bar->remove_menu('about'); // A propos de WordPress
        $wp_admin_bar->remove_menu('wporg'); // WordPress.org
        $wp_admin_bar->remove_menu('documentation'); // Documentation
        $wp_admin_bar->remove_menu('support-forums');  // Forum de support
        $wp_admin_bar->remove_menu('feedback'); // Remarque
        $wp_admin_bar->remove_menu('view-site'); // Aller voir le site
    }
    add_action('wp_before_admin_bar_render', 'edit_admin_bar');
    // Supprimer du head :  Windows Live Writer sous WordPress.
    remove_action('wp_head','wlwmanifest_link');
    // Supprimer du head :  rsd_link.
    remove_action('wp_head','rsd_link');
    // Supprimer du head : feed_links.
    remove_action('wp_head', 'feed_links', 2);
    // Supprimer du head : rel='canonical'.
    remove_action('wp_head', 'rel_canonical');
    // Supprimer du head : rel='next/Pprev'.
    remove_action('wp_head', 'adjacent_posts_rel_link_wp_head');
    // Masquer le numéro de version de votre site WordPress.
    remove_action('wp_head','wp_generator');
    // Redirrection utilisateur vers l'accueil apres connexion.
    add_filter("login_redirect","subscriber_login_redirect",10,3);function subscriber_login_redirect($redirect_to,$request,$user){if(is_array($user->roles))if(in_array('administrator',$user->roles))return site_url('/wp-admin/');return home_url();}

    http://wordpress.org/extend/plugins/welcome-email-editor/

  2. JibsouX
    Member
    Posted 1 year ago #

    i downgrade the the previous version the plugin work fine..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.