Function Reference: geodir_new_post_default_status

Summary

Default post status for new posts.

Package

GeoDirectory

Return Values

(string)
  • Returns the default post status for new posts.
  • Ex: draft, publish etc.

Change Log

Since: 1.0.0

Filters

‘geodir_new_post_default_status’ [Line: 2105]

Source File

geodir_new_post_default_status() is located in geodirectory-functions/post_functions.php [Line: 2091]

Source Code

function geodir_new_post_default_status()
{

    $status = get_option( 'geodir_new_post_default_status' );

    if ( empty( $status ) ) {
        $status = 'publish';
    }

    /**
     * Filter the new post status.
     *
     * @since 1.6.23
     */
    return apply_filters( 'geodir_new_post_default_status', $status );

}