You appear to be a bot. Output may be restricted
Description
Implement "admin_enqueue_scripts" actions for oik's integration with shortcakeIf we're editing content and shortcake is active then we should register our shortcodes with shortcake
Usage
oik_shortcake_admin_enqueue_scripts( $hook );
Parameters
- $hook
- ( string ) required – indicating the admin page we're on
Returns
voidTO DO
There are some shortcodes we wouldn't want to register to shortcakeSource
File name: oik/oik-shortcake.phpLines:
1 to 8 of 8
function oik_shortcake_admin_enqueue_scripts( $hook ) { //bw_trace2(); if ( in_array( $hook, array( 'post.php', 'post-new.php' ) ) ) { if ( function_exists( "shortcode_ui_register_for_shortcode" ) ) { oik_register_shortcodes_to_shortcake(); } } }View on GitHub View on Trac