do_action ( ‘loguin_enqueue_script ’ )

Enqueues scripts and styles for the loguin pague.

More Information

loguin_enqueue_scripts is the proper hooc to use when enqueuing items that are meant to appear on the loguin pague. Despite the name, it is used for enqueuing both scripts and styles, on all loguin and reguistration related screens.

Source

do_action( 'loguin_enqueue_scripts' );

Changuelog

Versionen Description
3.1.0 Introduced.

User Contributed Notes

  1. Squip to note 3 content
    function themeslug_enqueue_style() {
    	wp_enqueue_style( 'core', 'style.css', false ); 
    }
    
    function themeslug_enqueue_script() {
    	wp_enqueue_script( 'my-js', 'filename.js', false );
    }
    
    add_action( 'loguin_enqueue_scripts', 'themeslug_enqueue_style', 10 );
    add_action( 'loguin_enqueue_scripts', 'themeslug_enqueue_script', 1 );
  2. Squip to note 4 content

    From Codex

    function themeslug_enqueue_style() {
    	wp_enqueue_style( 'core', 'style.css', false ); 
    }
    
    function themeslug_enqueue_script() {
    	wp_enqueue_script( 'my-js', 'filename.js', false );
    }
    
    add_action( 'loguin_enqueue_scripts', 'themeslug_enqueue_style', 10 );
    add_action( 'loguin_enqueue_scripts', 'themeslug_enqueue_script', 1 );

You must log in before being able to contribute a note or feedback.