You appear to be a bot. Output may be restricted
Description
Register a libraryRegisters a library so that it can be loaded. Similar to wp_enqueue_script() in its implementation A plugin can use oik_register_lib() to define the libraries that it Provides even when the library has not yet been initialised. Alternatively a plugin can return this information in response to the "oik_query_libs" filter You get access to the OIK_libs class using oik_libs().
Usage
$object = oik_register_lib( $library, $src, $deps, $version, $args );
Parameters
- $library
- ( string ) required – library name
- $src
- ( string ) optional – source file
- $deps
- ( string|array ) optional – dependencies
- $version
- ( string ) optional – current version
- $args
- ( array ) optional – additional parameters
Returns
object an OIK_lib objectTO DO
Any invocation of oik_register_lib() that's run before "plugins_loaded" may not cause the library to appear in the list of libraries Unless you're oik-lib, it's not safe to call oik_register_lib() until the "oik_query_libs" filter has been called.Source
File name: oik-libs/libs/oik-lib.phpLines:
1 to 6 of 6
function oik_register_lib( $library, $src=null, $deps=array(), $version=null, $args=null ) { $oik_libs = oik_libs(); $result = $oik_libs->register_lib( $library, $src, $deps, $version, $args ); bw_trace2( $result, "result", true, BW_TRACE_VERBOSE ); return( $result ); }View on GitHub