This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Filter the post title. | |
* | |
* @since 0.71 | |
* | |
* @param string $title The post title. | |
* @param int $id The post ID. | |
*/ | |
return apply_filters( 'the_title', $title, $id ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
* @param string $tag The name of the filter to hook the $function_to_add callback to. | |
* @param callback $function_to_add The callback to be run when the filter is applied. | |
* @param int $priority (optional) The order in which the functions associated with a particular action are executed. Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action. | |
* Default 10. | |
* @param int $accepted_args (optional) The number of arguments the function accepts. | |
* Default 1. | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This function loads all themes files, | |
* registers the actions and filters which are | |
* needed to get this theme on work. It also | |
* registers the needed language packs and its | |
* textdomain. | |
* | |
* @wp-hook after_setup_theme | |
* @return void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This function loads all plugin files, | |
* registers the actions and filters which are | |
* needed to get this plugin on work. It also | |
* registers the needed language packs and its | |
* textdomain. | |
* | |
* @wp-hook plugins_loaded | |
* @return void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hooks a function on to a specific action. | |
* | |
* Actions are the hooks that the WordPress core launches at specific points | |
* during execution, or when specific events occur. Plugins can specify that | |
* one or more of its PHP functions are executed at these points, using the | |
* Action API. | |
* | |
* @uses add_filter() Adds an action. Parameter list and functionality are the same. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Fires after the theme is loaded. | |
* | |
* @since 3.0.0 | |
*/ | |
do_action( 'after_setup_theme' ); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Fires once activated plugins have loaded. | |
* | |
* Pluggable functions are also available at this point in the loading order. | |
* | |
* @since 1.5.0 | |
*/ | |
do_action( 'plugins_loaded' ); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* this function gets the role of the given | |
* user | |
* | |
* @param id the id of the user | |
* @return string role of user | |
*/ | |
function ll_get_role_of_user( $user_id ) { |
NewerOlder